Skip to content

Commit 6d44c5e

Browse files
committed
depends: Add commands for each package for each stage
1 parent 80f0e05 commit 6d44c5e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

depends/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,6 @@ download-win:
192192
@$(MAKE) -s HOST=x86_64-w64-mingw32 download-one
193193
download: download-osx download-linux download-win
194194

195+
$(foreach package,$(all_packages),$(eval $(call ext_add_stages,$(package))))
196+
195197
.PHONY: install cached clean clean-all download-one download-osx download-linux download-win download check-packages check-sources

depends/funcs.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ $(1): | $($(1)_cached_checksum)
213213

214214
endef
215215

216+
stages = fetched extracted preprocessed configured built staged postprocessed cached cached_checksum
217+
218+
define ext_add_stages
219+
$(foreach stage,$(stages),
220+
$(1)_$(stage): $($(1)_$(stage))
221+
.PHONY: $(1)_$(stage))
222+
endef
223+
216224
# These functions create the build targets for each package. They must be
217225
# broken down into small steps so that each part is done for all packages
218226
# before moving on to the next step. Otherwise, a package's info

0 commit comments

Comments
 (0)