aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2015-09-08 10:19:04 +0200
committerJean-Sébastien Pédron <[email protected]>2015-09-09 12:45:00 +0200
commit4191bf78c25cd947facc199d18321b3fcac736d7 (patch)
treee3907de83a924c87d42b87b21038fc5729295578 /test/Makefile
parentd8c092a05409f2ba3eec5a2e4d8e870d6d04fed0 (diff)
downloaderlang.mk-4191bf78c25cd947facc199d18321b3fcac736d7.tar.gz
erlang.mk-4191bf78c25cd947facc199d18321b3fcac736d7.tar.bz2
erlang.mk-4191bf78c25cd947facc199d18321b3fcac736d7.zip
erlc.mk: Fix "no Erlang application" support
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index b2c8d19..7b1a22e 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -77,7 +77,7 @@ clean-core: clean-core-app clean-core-upgrade
# Core: Building applications.
-CORE_APP_CASES = asn1 error generate-erl generate-erl-include generate-erl-prepend help hrl hrl-recursive mib no-makedep xrl xrl-include yrl yrl-include
+CORE_APP_CASES = asn1 error generate-erl generate-erl-include generate-erl-prepend help hrl hrl-recursive mib no-app no-makedep xrl xrl-include yrl yrl-include
CORE_APP_TARGETS = $(addprefix core-app-,$(CORE_APP_CASES))
CORE_APP_CLEAN_TARGETS = $(addprefix clean-,$(CORE_APP_TARGETS))
@@ -772,6 +772,17 @@ core-app-mib: build clean-core-app-mib
[{module, M} = code:load_file(M) || M <- Mods], \
halt()"
+core-app-no-app: build clean-core-app-no-app
+
+ $i "Bootstrap a project without an OTP library"
+ $t mkdir $(APP)/
+ $t cp ../erlang.mk $(APP)/
+ $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
+ $t rm -rf $(APP)/src
+
+ $i "Build the project"
+ $t $(MAKE) -C $(APP) $v
+
core-app-no-makedep: build clean-core-app-no-makedep
$i "Bootstrap a new OTP library named $(APP)"