]> Lady’s Gitweb - Caudex/commitdiff
Fix git initialization from within a subdirectory
authorLady <redacted>
Mon, 5 Feb 2024 02:34:12 +0000 (21:34 -0500)
committerLady <redacted>
Thu, 15 Aug 2024 00:34:43 +0000 (20:34 -0400)
GNUmakefile

index 5602ca0c82c778bcb74b2efafd4d336b49eca389..a470b399c061894dec66c3db024483efbf995eb6 100644 (file)
@@ -268,9 +268,9 @@ FORCE : ;
 # ─ ¶ Build Targets ───────────────────────────────────────────────────
 
 # Initialize the ⛩️📰 书社 repository if it is empty.
-$(SHUSHE)/GNUmakefile : %/GNUmakefile :
+$(SHUSHE)/GNUmakefile : $(THISDIR)/%/GNUmakefile :
        @$(PRINTF) '%s\n' $(call quote,Initializing git submodule at `$*´)
-       $(silent)$(GIT) submodule update --init $(call quote,$*)
+       $(silent)cd $(THISDIR) && $(GIT) submodule update --init $(call quote,$*)
 
 # Touch parsers and transforms if the files in `lib/´ have changed.
 $(PARSERS) $(TRANSFORMS) : $(wildcard lib/*.xslt)
This page took 0.022178 seconds and 4 git commands to generate.