From: Lady Date: Sat, 3 Feb 2024 00:28:23 +0000 (-0500) Subject: Calculate dependencies for includes also X-Git-Tag: 0.5.0~2 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/ec9ef029de81093ece572be3dc6a9b0b328a25da?hp=d5d9313e299c91913ebc7b24742107068af9a5ce Calculate dependencies for includes also This is only used by `make list`, but that’s still useful. --- diff --git a/GNUmakefile b/GNUmakefile index 9eb4fd4..f914825 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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. #