From: Lady Date: Tue, 16 Jan 2024 03:18:26 +0000 (-0500) Subject: Simplify recursive dependency error printing X-Git-Tag: 0.3.0~2 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/dee6f77543cd71dcf0275d9d2898b69e656162e1?ds=inline;hp=e0c0562b79020c115373957d9c2d92a575758dda Simplify recursive dependency error printing There are new functions which can make this rule a lot simpler and more straightforward. --- diff --git a/GNUmakefile b/GNUmakefile index bcba827..a16e29c 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -366,8 +366,8 @@ list: # Raise an error when attempting to build any files with recursive # dependencies. -$(call compiled,$(recursivefiles)): $(BUILDDIR)/public/%: - @$(PRINTF) '%b\n' $(call quote,\0033[93;41mError:\0033[39;49m `$*´ has recursive dependencies:\n$(subst :, ,$(subst $(space),$(newline),$(foreach recursive,$(call recursives,$(SRCDIR)/$*),•:$(patsubst $(SRCDIR)/%,%,$(recursive)))))) && false +$(call compiled,$(recursivefiles)): + @$(PRINTF) '%b\n' $(call quote,\0033[93;41mError:\0033[39;49m `$(call uncompiled,$@)´ has recursive dependencies:\n$(subst :, ,$(subst $(space),$(newline),$(foreach recursive,$(call recursives,$(call uncompiled,$@)),•:$(recursive))))) && false # ─ ¶ Special Targets ─────────────────────────────────────────────────