2025-05-12 12:07:28 +00:00
|
|
|
#%SRCPAT% \.prot\.md
|
2025-05-12 01:25:05 +00:00
|
|
|
|
2025-05-13 08:15:10 +00:00
|
|
|
include /opt/lenaisten/compile-md.mk
|
|
|
|
|
|
|
|
PANDOCVARS := \
|
|
|
|
colorlinks:true \
|
|
|
|
csquotes:true \
|
|
|
|
hyperrefoptions:pdfa \
|
|
|
|
lang:de-DE
|
2025-05-09 01:50:03 +00:00
|
|
|
|
|
|
|
suffixPub :=
|
|
|
|
suffixInt := _intern
|
|
|
|
|
2025-05-12 12:07:28 +00:00
|
|
|
mdFiles := $(wildcard *.prot.md)
|
2025-05-12 21:45:34 +00:00
|
|
|
mdSuffix = $(patsubst %.prot.md,%$(1),$(mdFiles))
|
2025-05-09 01:50:03 +00:00
|
|
|
|
2025-05-12 21:45:34 +00:00
|
|
|
pdfFilesPub := $(call mdSuffix,$(suffixPub).pdf)
|
|
|
|
pdfFilesInt := $(call mdSuffix,$(suffixInt).pdf)
|
2025-05-13 08:15:10 +00:00
|
|
|
|
|
|
|
texFilesPub := $(call mdSuffix,$(suffixPub).tex)
|
2025-05-12 21:45:34 +00:00
|
|
|
texFilesInt := $(call mdSuffix,$(suffixInt).tex)
|
2025-05-09 01:50:03 +00:00
|
|
|
|
2025-05-12 21:45:34 +00:00
|
|
|
.PHONY: all autodoc
|
|
|
|
all: pdf tex
|
|
|
|
autodoc: pdf
|
2025-05-09 01:50:03 +00:00
|
|
|
|
2025-05-12 21:45:34 +00:00
|
|
|
.PHONY: pdf tex
|
|
|
|
pdf: $(pdfFilesPub) $(pdfFilesInt)
|
|
|
|
tex: $(texFilesPub) $(texFilesInt)
|
2025-05-11 20:49:17 +00:00
|
|
|
|
|
|
|
# pdf
|
|
|
|
|
2025-05-12 12:07:28 +00:00
|
|
|
%$(suffixPub).pdf: %.prot.md lev-shorthands.sty
|
2025-05-13 00:36:01 +00:00
|
|
|
/opt/lenaisten/redact.py $< | $(call md2pdfa,-,lev-protokoll,$@)
|
2025-05-11 20:06:35 +00:00
|
|
|
|
2025-05-12 12:07:28 +00:00
|
|
|
%$(suffixInt).pdf: %.prot.md lev-shorthands.sty
|
2025-05-13 00:36:01 +00:00
|
|
|
/opt/lenaisten/redact.py --internal $< | $(call md2pdfa,-,lev-protokoll,$@)
|
2025-05-11 20:49:17 +00:00
|
|
|
|
|
|
|
# tex
|
|
|
|
|
2025-05-12 12:07:28 +00:00
|
|
|
%$(suffixPub).tex: %.prot.md lev-shorthands.sty
|
2025-05-13 00:36:01 +00:00
|
|
|
/opt/lenaisten/redact.py $< | $(call compile_md,-,lev-protokoll,latex,$@)
|
2025-05-11 20:06:35 +00:00
|
|
|
|
2025-05-12 12:07:28 +00:00
|
|
|
%$(suffixInt).tex: %.prot.md lev-shorthands.sty
|
2025-05-13 00:36:01 +00:00
|
|
|
/opt/lenaisten/redact.py --internal $< | $(call compile_md,-,lev-protokoll,latex,$@)
|