aboutsummaryrefslogtreecommitdiff
path: root/depends/funcs.mk
diff options
context:
space:
mode:
authorCarl Dong <accounts@carldong.me>2019-02-19 15:59:36 -0500
committerCarl Dong <accounts@carldong.me>2019-02-19 15:59:36 -0500
commit6d44c5ebf97af4b357079fe4bc2130f98e1d0fd2 (patch)
treee28bbe9590a10a4033a9c86c24459995d2908348 /depends/funcs.mk
parent80f0e05b700f8ad6903f22b3e81f905ccf6b13eb (diff)
depends: Add commands for each package for each stage
Diffstat (limited to 'depends/funcs.mk')
-rw-r--r--depends/funcs.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/depends/funcs.mk b/depends/funcs.mk
index 2ec8e47718..fbefc890ef 100644
--- a/depends/funcs.mk
+++ b/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