diff options
author | Loïc Hoguin <[email protected]> | 2015-05-09 16:55:23 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-05-09 16:55:23 +0300 |
commit | f458e45abf7e114a55272bd494d6a5c13f7c85bc (patch) | |
tree | 13d3e30251533105bc133512652ffd0c27461bd6 | |
parent | 7d28bd8d9eb449c360eb9582e282bd4756f76be9 (diff) | |
download | erlang.mk-f458e45abf7e114a55272bd494d6a5c13f7c85bc.tar.gz erlang.mk-f458e45abf7e114a55272bd494d6a5c13f7c85bc.tar.bz2 erlang.mk-f458e45abf7e114a55272bd494d6a5c13f7c85bc.zip |
Skip any handling of dependencies if SKIP_DEPS is defined
This includes fetching and compilation. Example usage:
SKIP_DEPS=1 make tests
Should improve people's life when there are no Internets.
-rw-r--r-- | core/deps.mk | 4 | ||||
-rw-r--r-- | core/docs.mk | 4 | ||||
-rw-r--r-- | core/test.mk | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk index 1115a97..3b18ce9 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -37,6 +37,9 @@ dep_verbose = $(dep_verbose_$(V)) # Core targets. +ifneq ($(SKIP_DEPS),) +deps:: +else deps:: $(ALL_DEPS_DIRS) @for dep in $(ALL_DEPS_DIRS) ; do \ if [ -f $$dep/GNUmakefile ] || [ -f $$dep/makefile ] || [ -f $$dep/Makefile ] ; then \ @@ -46,6 +49,7 @@ deps:: $(ALL_DEPS_DIRS) exit 1 ; \ fi ; \ done +endif distclean:: distclean-deps distclean-pkg diff --git a/core/docs.mk b/core/docs.mk index 9637d32..e1e2d0e 100644 --- a/core/docs.mk +++ b/core/docs.mk @@ -11,5 +11,9 @@ ALL_DOC_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(DOC_DEPS)) $(foreach dep,$(DOC_DEPS),$(eval $(call dep_target,$(dep)))) +ifneq ($(SKIP_DEPS),) +doc-deps: +else doc-deps: $(ALL_DOC_DEPS_DIRS) @for dep in $(ALL_DOC_DEPS_DIRS) ; do $(MAKE) -C $$dep; done +endif diff --git a/core/test.mk b/core/test.mk index 385ec85..7dd5d61 100644 --- a/core/test.mk +++ b/core/test.mk @@ -16,8 +16,12 @@ TEST_ERLC_OPTS += -DTEST=1 $(foreach dep,$(TEST_DEPS),$(eval $(call dep_target,$(dep)))) +ifneq ($(SKIP_DEPS),) +test-deps: +else test-deps: $(ALL_TEST_DEPS_DIRS) @for dep in $(ALL_TEST_DEPS_DIRS) ; do $(MAKE) -C $$dep; done +endif ifneq ($(strip $(TEST_DIR)),) test-dir: |