aboutsummaryrefslogtreecommitdiffstats
path: root/core/rel.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-22 17:33:19 +0200
committerLoïc Hoguin <[email protected]>2015-09-22 17:33:19 +0200
commit707c8656a12aff8104f627310271da8bee5efc9a (patch)
tree389c9164e2a2546aa33e49550b618bf821cae671 /core/rel.mk
parent6811c6505015fafdae3cb2d110fb1c2b8c39209f (diff)
downloaderlang.mk-707c8656a12aff8104f627310271da8bee5efc9a.tar.gz
erlang.mk-707c8656a12aff8104f627310271da8bee5efc9a.tar.bz2
erlang.mk-707c8656a12aff8104f627310271da8bee5efc9a.zip
Add REL_DEPS along with its test
Diffstat (limited to 'core/rel.mk')
-rw-r--r--core/rel.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/rel.mk b/core/rel.mk
new file mode 100644
index 0000000..d7617a3
--- /dev/null
+++ b/core/rel.mk
@@ -0,0 +1,19 @@
+# Copyright (c) 2015, Loïc Hoguin <[email protected]>
+# This file is part of erlang.mk and subject to the terms of the ISC License.
+
+.PHONY: rel-deps
+
+# Configuration.
+
+ALL_REL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(REL_DEPS))
+
+# Targets.
+
+$(foreach dep,$(REL_DEPS),$(eval $(call dep_target,$(dep))))
+
+ifneq ($(SKIP_DEPS),)
+rel-deps:
+else
+rel-deps: $(ALL_REL_DEPS_DIRS)
+ $(verbose) for dep in $(ALL_REL_DEPS_DIRS) ; do $(MAKE) -C $$dep; done
+endif