]> Lady’s Gitweb - Shushe/commitdiff
Simplify recursive dependency error printing
authorLady <redacted>
Tue, 16 Jan 2024 03:18:26 +0000 (22:18 -0500)
committerLady <redacted>
Thu, 18 Jan 2024 02:36:51 +0000 (21:36 -0500)
There are new functions which can make this rule a lot simpler and more
straightforward.

GNUmakefile

index bcba827b8f63519de1c829f6c4c6def96ffdfd7c..a16e29c149ec0491ff5865a618b3d778d9f6208f 100644 (file)
@@ -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 ─────────────────────────────────────────────────
 
This page took 0.064718 seconds and 4 git commands to generate.