From 1dbfc812e17137b87c545e30ac7f2ce489218ed6 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Mon, 17 Jun 2019 11:22:55 +0200 Subject: Add debug targets to depends Makefile Packages can now be built individually and for each stage. This allows easier debugging. --- contrib/depends/funcs.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'contrib/depends/funcs.mk') 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 -- cgit v1.2.3