aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bootstrap.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-18 14:34:58 +0200
committerLoïc Hoguin <[email protected]>2015-09-18 14:34:58 +0200
commit5bcfeece2f55cd8570b1356d9982756e99f90b40 (patch)
treeb3ec855b58fbdb522a23c5739dad905753232a37 /plugins/bootstrap.mk
parent9c3f9f1dfe73738d182ddd9832406b2ab61293f7 (diff)
downloaderlang.mk-5bcfeece2f55cd8570b1356d9982756e99f90b40.tar.gz
erlang.mk-5bcfeece2f55cd8570b1356d9982756e99f90b40.tar.bz2
erlang.mk-5bcfeece2f55cd8570b1356d9982756e99f90b40.zip
Test "no .app.src" by default, test legacy with LEGACY=1
Also fixes two bugs with the new "no .app.src" method. All tests now pass with both methods. We can now test specific cases with make check c=$CASE.
Diffstat (limited to 'plugins/bootstrap.mk')
-rw-r--r--plugins/bootstrap.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/bootstrap.mk b/plugins/bootstrap.mk
index 7f8331e..44f10ea 100644
--- a/plugins/bootstrap.mk
+++ b/plugins/bootstrap.mk
@@ -49,6 +49,8 @@ endef
ifdef SP
define bs_Makefile
PROJECT = $(PROJECT)
+PROJECT_DESCRIPTION = New project
+PROJECT_VERSION = 0.0.1
# Whitespace to be used when creating files from templates.
SP = $(SP)
@@ -355,7 +357,9 @@ ifneq ($(wildcard src/),)
endif
$(call render_template,bs_Makefile,Makefile)
$(verbose) mkdir src/
+ifdef LEGACY
$(call render_template,bs_appsrc,src/$(PROJECT).app.src)
+endif
$(call render_template,bs_app,src/$(PROJECT)_app.erl)
$(eval n := $(PROJECT)_sup)
$(call render_template,tpl_supervisor,src/$(PROJECT)_sup.erl)
@@ -366,7 +370,9 @@ ifneq ($(wildcard src/),)
endif
$(call render_template,bs_Makefile,Makefile)
$(verbose) mkdir src/
+ifdef LEGACY
$(call render_template,bs_appsrc_lib,src/$(PROJECT).app.src)
+endif
bootstrap-rel:
ifneq ($(wildcard relx.config),)