aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-12-18 19:23:50 +0100
committerLoïc Hoguin <[email protected]>2015-12-18 19:23:50 +0100
commit13cf9ba379cfc7b2945301453ccb4c804f4e2881 (patch)
treefe8cfe50d52406e54158b34d9a50baea0abef9a1 /test/Makefile
parent758ba1810f5aeed20dbb02b794342c504d73cb13 (diff)
downloaderlang.mk-13cf9ba379cfc7b2945301453ccb4c804f4e2881.tar.gz
erlang.mk-13cf9ba379cfc7b2945301453ccb4c804f4e2881.tar.bz2
erlang.mk-13cf9ba379cfc7b2945301453ccb4c804f4e2881.zip
Exclude rabbitmq_codegen from the package check
This isn't an Erlang application.
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile
index 34d647f..d5a3a61 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -181,6 +181,7 @@ core-help: build clean-core-help
# Packages.
PACKAGES = $(foreach pkg,$(sort $(wildcard ../index/*.mk)),$(notdir $(basename $(pkg))))
+EXCLUDE_FROM_CHECK = [rabbitmq_codegen]
packages: $(addprefix pkg-,$(PACKAGES))
@@ -217,8 +218,9 @@ pkg-$1: clean build
$i "Check that all applications and their modules can be loaded"
$t if ! ( cd packages/$1_pkg/ && $(ERL) -pa deps/*/ebin/ -eval " \
- Apps = [list_to_atom(App) || \"deps/\" ++ App \
+ Apps0 = [list_to_atom(App) || \"deps/\" ++ App \
<- filelib:wildcard(\"deps/*\")], \
+ Apps = [App || App <- Apps0, not lists:member(App, $(EXCLUDE_FROM_CHECK))], \
[begin \
io:format(\"Loading application ~p~n\", [App]), \
case application:load(App) of \
@@ -250,8 +252,9 @@ pkg-$1: clean build
$i "Check that all applications and their modules can still be loaded"
$t if ! ( cd packages/$1_pkg/ && $(ERL) -pa deps/*/ebin/ -eval " \
- Apps = [list_to_atom(App) || \"deps/\" ++ App \
+ Apps0 = [list_to_atom(App) || \"deps/\" ++ App \
<- filelib:wildcard(\"deps/*\")], \
+ Apps = [App || App <- Apps0, not lists:member(App, $(EXCLUDE_FROM_CHECK))], \
[begin \
io:format(\"Loading application ~p~n\", [App]), \
case application:load(App) of \