diff options
author | TheCharlatan <seb.kung@gmail.com> | 2019-06-17 11:22:55 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2019-06-25 09:20:47 +0200 |
commit | 1dbfc812e17137b87c545e30ac7f2ce489218ed6 (patch) | |
tree | 95018dfa8a22a7e0cbfb5f1db202a10746fe94c1 | |
parent | Merge pull request #5641 (diff) | |
download | monero-1dbfc812e17137b87c545e30ac7f2ce489218ed6.tar.xz |
Add debug targets to depends Makefile
Packages can now be built individually and for each stage. This allows
easier debugging.
-rw-r--r-- | contrib/depends/Makefile | 2 | ||||
-rw-r--r-- | contrib/depends/funcs.mk | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/contrib/depends/Makefile b/contrib/depends/Makefile index 6ab602ac0..ec0e4cfae 100644 --- a/contrib/depends/Makefile +++ b/contrib/depends/Makefile @@ -217,4 +217,6 @@ download-win: @$(MAKE) -s HOST=x86_64-w64-mingw32 download-one download: download-osx download-linux download-win + $(foreach package,$(all_packages),$(eval $(call ext_add_stages,$(package)))) + .PHONY: install cached download-one download-osx download-linux download-win download check-packages check-sources 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 |