diff --git a/src/Beispiel_Protokoll.md b/src/Beispiel_Protokoll.prot.md similarity index 100% rename from src/Beispiel_Protokoll.md rename to src/Beispiel_Protokoll.prot.md diff --git a/src/lev-protokoll.mk b/src/lev-protokoll.mk index 6d8a472..0f8e14f 100644 --- a/src/lev-protokoll.mk +++ b/src/lev-protokoll.mk @@ -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,-,$@)