From: Michael Orlitzky Date: Thu, 26 Feb 2026 01:55:47 +0000 (-0500) Subject: GNUmakefile.mjo,examples: renaming of sage listings X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=1d6bc5a985bb5b75a17558ea73546fbd9f77578e;p=mjotex.git GNUmakefile.mjo,examples: renaming of sage listings First, rename the variable to SAGE_LISTINGS for consistency. Then change the existing sage_listing references to sage-listings. I've decided that the hypgen looks better, and now it's up to the user. --- diff --git a/GNUmakefile.mjo b/GNUmakefile.mjo index 8578efa..177837d 100644 --- a/GNUmakefile.mjo +++ b/GNUmakefile.mjo @@ -21,7 +21,7 @@ PN ?= $(patsubst %.git,%,$(notdir $(realpath .))) # Compile a list of raw source code listings (*.listing) and their # associated output files (*.sage.py) that will be tested by check-sage. # -# SAGE_LISTING_SRCS = $(wildcard sage_listings/*.listing) +# SAGE_LISTINGS = $(wildcard sage-listings/*.listing) # A space-separated list of indices (just their names). Usually you'll # have just one, and it will be named the same thing as your document, @@ -72,10 +72,10 @@ ifdef MJOTEX MJOTEXPATHS = $(shell kpsewhich $(MJOTEX)) SRCS += $(MJOTEXPATHS) endif -ifdef SAGE_LISTING_SRCS +ifdef SAGE_LISTINGS SAGE_LISTING_DSTS = $(patsubst %.listing,\ $(BUILDDIR)/%.sage.py,\ - $(SAGE_LISTING_SRCS)) + $(SAGE_LISTINGS)) SRCS += $(SAGE_LISTING_DSTS) endif diff --git a/examples/GNUmakefile b/examples/GNUmakefile index c499348..06db99b 100644 --- a/examples/GNUmakefile +++ b/examples/GNUmakefile @@ -1,5 +1,6 @@ # -# Example makefile using mjotex and a BibTeX references database. +# Example GNUmakefile using a BibTeX reference database, an index, and +# some mjotex libraries. # # After defining $(PN) to be the name of your document, this will # compile the source file $(PN).tex to $(PN).pdf. The remaining @@ -23,7 +24,7 @@ PN = examples # Specify the remaining variables only if you use them. BIBS = local-references.bib INDICES = $(PN) -SAGE_LISTING_SRCS = $(wildcard sage_listings/*.listing) +SAGE_LISTINGS = $(wildcard sage-listings/*.listing) # Only the ones we use... AKA all of them. MJOTEX = mjo-algebra.tex mjo-algorithm.tex mjo-arrow.tex mjo-calculus.tex diff --git a/examples/sage_listings/example.listing b/examples/sage-listings/example.listing similarity index 100% rename from examples/sage_listings/example.listing rename to examples/sage-listings/example.listing