aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-09 20:09:51 +0200
committerLoïc Hoguin <[email protected]>2015-09-09 20:09:51 +0200
commit34d6b54342d4f80d80f09d74b3fa25be1d5a4fab (patch)
tree2f3e1221d5dc8929505011fdfed4c5868306a0f8 /test
parent5c5c92862e673025172d73133976d896e6f9a332 (diff)
downloaderlang.mk-34d6b54342d4f80d80f09d74b3fa25be1d5a4fab.tar.gz
erlang.mk-34d6b54342d4f80d80f09d74b3fa25be1d5a4fab.tar.bz2
erlang.mk-34d6b54342d4f80d80f09d74b3fa25be1d5a4fab.zip
Move the test for help in its own category
Diffstat (limited to 'test')
-rw-r--r--test/Makefile31
1 files changed, 18 insertions, 13 deletions
diff --git a/test/Makefile b/test/Makefile
index 78942e5..8d16994 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -71,13 +71,13 @@ build:
.PHONY: core clean-core
-core: core-app core-upgrade
+core: core-app core-help core-upgrade
-clean-core: clean-core-app clean-core-upgrade
+clean-core: clean-core-app clean-core-help 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-app no-makedep xrl xrl-include yrl yrl-include
+CORE_APP_CASES = asn1 error generate-erl generate-erl-include generate-erl-prepend 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))
@@ -486,16 +486,6 @@ core-app-generate-erl-prepend: build clean-core-app-generate-erl-prepend
[{module, M} = code:load_file(M) || M <- Mods], \
halt()"
-core-app-help: build clean-core-app-help
-
- $i "Bootstrap a new OTP library named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
-
- $i "Run 'make help' and check that it prints help"
- $t test -n "`$(MAKE) -C $(APP) help` | grep Usage"
-
core-app-hrl: build clean-core-app-hrl
$i "Bootstrap a new OTP library named $(APP)"
@@ -1332,6 +1322,21 @@ clean-core-app: $(CORE_APP_CLEAN_TARGETS)
$(CORE_APP_CLEAN_TARGETS):
$t rm -rf $(APP_TO_CLEAN)/
+# Core: Help.
+
+core-help: build clean-core-help
+
+ $i "Bootstrap a new OTP library named $(APP)"
+ $t mkdir $(APP)/
+ $t cp ../erlang.mk $(APP)/
+ $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
+
+ $i "Run 'make help' and check that it prints help"
+ $t test -n "`$(MAKE) -C $(APP) help` | grep Usage"
+
+clean-core-help:
+ $t rm -rf $(APP_TO_CLEAN)/
+
# Core: Erlang.mk upgrade.
CORE_UPGRADE_CASES = alt-erlangmk-repo no-config custom-config renamed-config custom-build-dir