|
@@ -421,6 +421,7 @@ ifneq ($(wildcard src/),)
|
|
|
$(error Error: src/ directory already exists)
|
|
|
endif
|
|
|
$(eval p := $(PROJECT))
|
|
|
+ $(if $(findstring -,$p),$(error Error: The dash cannot be used in application names))
|
|
|
$(eval n := $(PROJECT)_sup)
|
|
|
$(call render_template,bs_Makefile,Makefile)
|
|
|
$(verbose) echo "include erlang.mk" >> Makefile
|
|
@@ -436,6 +437,7 @@ ifneq ($(wildcard src/),)
|
|
|
$(error Error: src/ directory already exists)
|
|
|
endif
|
|
|
$(eval p := $(PROJECT))
|
|
|
+ $(if $(findstring -,$p),$(error Error: The dash cannot be used in application names))
|
|
|
$(call render_template,bs_Makefile,Makefile)
|
|
|
$(verbose) echo "include erlang.mk" >> Makefile
|
|
|
$(verbose) mkdir src/
|
|
@@ -464,6 +466,7 @@ ifneq ($(wildcard $(APPS_DIR)/$in),)
|
|
|
$(error Error: Application $in already exists)
|
|
|
endif
|
|
|
$(eval p := $(in))
|
|
|
+ $(if $(findstring -,$p),$(error Error: The dash cannot be used in application names))
|
|
|
$(eval n := $(in)_sup)
|
|
|
$(verbose) mkdir -p $(APPS_DIR)/$p/src/
|
|
|
$(call render_template,bs_apps_Makefile,$(APPS_DIR)/$p/Makefile)
|
|
@@ -481,6 +484,7 @@ ifneq ($(wildcard $(APPS_DIR)/$in),)
|
|
|
$(error Error: Application $in already exists)
|
|
|
endif
|
|
|
$(eval p := $(in))
|
|
|
+ $(if $(findstring -,$p),$(error Error: The dash cannot be used in application names))
|
|
|
$(verbose) mkdir -p $(APPS_DIR)/$p/src/
|
|
|
$(call render_template,bs_apps_Makefile,$(APPS_DIR)/$p/Makefile)
|
|
|
ifdef LEGACY
|