]> Lady’s Gitweb - Shushe/commitdiff
Calculate dependencies for includes also
authorLady <redacted>
Sat, 3 Feb 2024 00:28:23 +0000 (19:28 -0500)
committerLady <redacted>
Sat, 3 Feb 2024 22:24:22 +0000 (17:24 -0500)
This is only used by `make list`, but that’s still useful.

GNUmakefile

index 9eb4fd4f99ca0b43120cb2bc13bacd2b0bf0101b..f914825307d473ae1d04474938a5f8c4c30721f9 100644 (file)
@@ -301,7 +301,7 @@ override unparsed = $(foreach file,$1,$(patsubst %|$(file),%,$(filter %|$(file),
 
 ifneq ($(wildcard $(BUILDDIR)/dependencies),)
 # Pair each file with a list of dependencies for it.
-override dependenciesforfile := $(foreach file,$(sourcefiles),$(file)|$(subst $(space),|,$(shell $(CAT) $(call quote,$(BUILDDIR)/dependencies) | $(SED) $(call quote,/^$(call sedesc,$(call localuri,$(file)))$$/$(comma)/^[^  ]/!d;/^ /!d;s/^ //))))
+override dependenciesforfile := $(foreach file,$(filter-out $(assetfiles),$(sourcefiles) $(sourceincludes)),$(file)|$(subst $(space),|,$(shell $(CAT) $(call quote,$(BUILDDIR)/dependencies) | $(SED) $(call quote,/^$(call sedesc,$(call localuri,$(file)))$$/$(comma)/^[^    ]/!d;/^ /!d;s/^ //))))
 
 # (callable) Get the list of dependency leiris for the given source files.
 #
This page took 0.054105 seconds and 4 git commands to generate.