]> Lady’s Gitweb - Caudex/commitdiff
Always run recipe if deps are empty 0.1.1
authorLady <redacted>
Mon, 5 Feb 2024 02:49:41 +0000 (21:49 -0500)
committerLady <redacted>
Thu, 15 Aug 2024 00:34:43 +0000 (20:34 -0400)
While this may lead to unnecessary runs, it is better than never
running the recipe when the deps are empty, which is the current
behaviour.

GNUmakefile

index a470b399c061894dec66c3db024483efbf995eb6..130312c188d17bb7c7fb8311be09493240f8a72b 100644 (file)
@@ -181,7 +181,7 @@ override ensuredirectory = if $(TEST) ! -d $(call quote,$1); then $(MKDIR) -p $(
 
 # (callable) Test to see if the dependencies provided by the second argument matches the value in the file corresponding to the first argument in `$(BUILDDIR)/lastprereqs´.
 # If not, return the third argument, plus an additional rule to save the new prerequisites.
-override makeandsavedeps = $(if $(subst $(shell $(CAT) $(call quote,$(BUILDDIR)/lastdeps/$1) 2> /dev/null || true),,$2),$3$(newline)$(silent)$(call ensuredirectory,$(BUILDDIR)/lastdeps)$(newline)$(silent)$(PRINTF) '%s\n' $(call quote,$2) > $(BUILDDIR)/lastdeps/$1,)
+override makeandsavedeps = $(if $(or $(if $2,,1),$(subst $(shell $(CAT) $(call quote,$(BUILDDIR)/lastdeps/$1) 2> /dev/null || true),,$2)),$3$(newline)$(silent)$(call ensuredirectory,$(BUILDDIR)/lastdeps)$(newline)$(silent)$(PRINTF) '%s\n' $(call quote,$2) > $(BUILDDIR)/lastdeps/$1,)
 
 # (callable) Make the catalog for the provided category.
 override define makecategorycatalog
This page took 0.021806 seconds and 4 git commands to generate.