From 983837a46a733ce907a0101d62e3551929f8125f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 27 Feb 2026 22:45:09 -0500 Subject: [PATCH] GNUmakefile.mjo: allow SRCS to be prepopulated We don't want to kpsewhich everything. Often, there are additional fixed files that should go in SRCS, and that don't need to be found at build time. By using "+=" the first time we modify SRCS, we make it possible for consumers to supply their own SRCS. --- GNUmakefile.mjo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GNUmakefile.mjo b/GNUmakefile.mjo index 72fbb03..3aaf323 100644 --- a/GNUmakefile.mjo +++ b/GNUmakefile.mjo @@ -66,7 +66,11 @@ endif # Use kpsewhich (from the kpathsea suite) to find the absolute paths # of the bibtex/mjotex files listed in in $(BIBS)/$(MJOTEX). The SRCS # variable should contain all (Bib)TeX source files for the document. -SRCS = $(PN).tex +# We append to $(SRCS) here, even though it will typically be empty, +# to allow projects to pre-populate it. (In many cases, there will +# be extra tikz images or whatever that qualify as source files, +# should trigger a rebuild, and do not need to be kpsewhich'd). +SRCS += $(PN).tex ifdef BIBS BIBPATHS = $(shell kpsewhich $(BIBS)) SRCS += $(BIBPATHS) -- 2.51.0