|
@@ -1,6 +1,6 @@
|
|
|
# Core: Building applications.
|
|
|
|
|
|
-CORE_APP_CASES = appsrc-change asn1 auto-git-id env erlc-exclude erlc-opts erlc-opts-filter error extra-keys generate-erl generate-erl-include generate-erl-prepend hrl hrl-recursive makefile-change mib name-special-char no-app no-makedep project-mod pt pt-erlc-opts xrl xrl-include yrl yrl-header yrl-include
|
|
|
+CORE_APP_CASES = appsrc-change asn1 auto-git-id env erlc-exclude erlc-opts erlc-opts-filter error extra-keys generate-erl generate-erl-include generate-erl-prepend hrl hrl-recursive makefile-change mib name-special-char no-app no-makedep project-mod pt pt-erlc-opts xrl xrl-help xrl-include yrl yrl-header yrl-include
|
|
|
CORE_APP_TARGETS = $(addprefix core-app-,$(CORE_APP_CASES))
|
|
|
|
|
|
.PHONY: core-app $(CORE_APP_TARGETS)
|
|
@@ -1315,6 +1315,28 @@ endif
|
|
|
[{module, M} = code:load_file(M) || M <- Mods], \
|
|
|
halt()"
|
|
|
|
|
|
+core-app-xrl-help: build clean
|
|
|
+
|
|
|
+ $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 "Download an .xrl file from Robert"
|
|
|
+ $t curl -s -o $(APP)/src/erlang_scan.xrl https://raw.githubusercontent.com/rvirding/leex/master/examples/erlang_scan.xrl
|
|
|
+
|
|
|
+ $i "Disable warnings; our test .xrl files aren't perfect"
|
|
|
+ $t echo "ERLC_OPTS=+debug_info" >> $(APP)/Makefile
|
|
|
+
|
|
|
+ $i "Run 'make help'"
|
|
|
+ $t $(MAKE) -C $(APP) help $v
|
|
|
+
|
|
|
+ $i "Check that no files were compiled"
|
|
|
+ $t test ! -e $(APP)/$(APP).d
|
|
|
+ $t test ! -e $(APP)/ebin/$(APP).app
|
|
|
+ $t test ! -e $(APP)/ebin/erlang_scan.beam
|
|
|
+ $t test ! -e $(APP)/src/erlang_scan.erl
|
|
|
+
|
|
|
core-app-xrl-include: build clean
|
|
|
|
|
|
$i "Bootstrap a new OTP library named $(APP)"
|