aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/funcs.mk
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2019-06-17 11:22:55 +0200
committerTheCharlatan <seb.kung@gmail.com>2019-06-25 19:16:59 +0200
commit51570600777636c4cb9c6b17419749389cc3bc10 (patch)
treea9f219270c9dd8876cea58c0885e2c5ab47dac9b /contrib/depends/funcs.mk
parentMerge pull request #5638 (diff)
downloadmonero-51570600777636c4cb9c6b17419749389cc3bc10.tar.xz
Add debug targets to depends Makefile
Packages can now be built individually and for each stage. This allows easier debugging.
Diffstat (limited to '')
-rw-r--r--contrib/depends/funcs.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/depends/funcs.mk b/contrib/depends/funcs.mk
index 15e404e42..469144361 100644
--- a/contrib/depends/funcs.mk
+++ b/contrib/depends/funcs.mk
@@ -213,6 +213,14 @@ $(1): | $($(1)_cached_checksum)
endef
+stages = fetched extracted preprocessed configured built staged postprocessed cached cached_checksum
+
+define ext_add_stages
+$(foreach stage,$(stages),
+ $(1)_$(stage): $($(1)_$(stage))
+ .PHONY: $(1)_$(stage))
+endef
+
# These functions create the build targets for each package. They must be
# broken down into small steps so that each part is done for all packages
# before moving on to the next step. Otherwise, a package's info