From: Lady Date: Mon, 5 Feb 2024 02:34:12 +0000 (-0500) Subject: Fix git initialization from within a subdirectory X-Git-Tag: 0.1.1~1 X-Git-Url: https://git.ladys.computer/Caudex/commitdiff_plain/5f391723082d6fbf7f8a586c81d81eeb3554ccbd Fix git initialization from within a subdirectory --- diff --git a/GNUmakefile b/GNUmakefile index 5602ca0..a470b39 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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)