prot.md extension for easier autodoc usage

This commit is contained in:
Jörn-Michael Miehe 2025-05-12 12:07:28 +00:00
parent 6e5525051d
commit c4f02e85a1
2 changed files with 10 additions and 10 deletions

View file

@ -1,4 +1,4 @@
#%SRCPAT% \.md
#%SRCPAT% \.prot\.md
############
# Settings #
@ -14,13 +14,13 @@ suffixInt := _intern
suffixSubst = $(patsubst %.$(2),%$(4).$(3),$(1))
mdFiles := $(wildcard *.md)
mdFiles := $(wildcard *.prot.md)
pdfFilesPub := $(call suffixSubst,$(mdFiles),md,pdf,$(suffixPub))
texFilesPub := $(call suffixSubst,$(mdFiles),md,tex,$(suffixPub))
pdfFilesPub := $(call suffixSubst,$(mdFiles),prot.md,pdf,$(suffixPub))
texFilesPub := $(call suffixSubst,$(mdFiles),prot.md,tex,$(suffixPub))
pdfFilesInt := $(call suffixSubst,$(mdFiles),md,pdf,$(suffixInt))
texFilesInt := $(call suffixSubst,$(mdFiles),md,tex,$(suffixInt))
pdfFilesInt := $(call suffixSubst,$(mdFiles),prot.md,pdf,$(suffixInt))
texFilesInt := $(call suffixSubst,$(mdFiles),prot.md,tex,$(suffixInt))
.PHONY: all pdf pdfPub pdfInt tex texPub texInt
all: pdf
@ -82,16 +82,16 @@ md2pdfa = $(call md2pdf,$(1),-) | $(call convert_pdfa,-,$(2))
# pdf
%$(suffixPub).pdf: %.md lev-shorthands.sty
%$(suffixPub).pdf: %.prot.md lev-shorthands.sty
python3 /opt/lenaisten/redact.py $< | $(call md2pdfa,-,$@)
%$(suffixInt).pdf: %.md lev-shorthands.sty
%$(suffixInt).pdf: %.prot.md lev-shorthands.sty
python3 /opt/lenaisten/redact.py -i $< | $(call md2pdfa,-,$@)
# tex
%$(suffixPub).tex: %.md lev-shorthands.sty
%$(suffixPub).tex: %.prot.md lev-shorthands.sty
python3 /opt/lenaisten/redact.py $< | $(call compile_md,latex,-,$@)
%$(suffixInt).tex: %.md lev-shorthands.sty
%$(suffixInt).tex: %.prot.md lev-shorthands.sty
python3 /opt/lenaisten/redact.py -i $< | $(call compile_md,latex,-,$@)