lev-templates/src/lev-protokoll.mk

40 lines
1 KiB
Makefile
Raw Normal View History

#%SRCPAT% \.prot\.md
2025-05-12 01:25:05 +00:00
2025-05-12 22:07:56 +00:00
include /opt/lenaisten/lev-templates.mk
2025-05-09 01:50:03 +00:00
suffixPub :=
suffixInt := _intern
mdFiles := $(wildcard *.prot.md)
mdSuffix = $(patsubst %.prot.md,%$(1),$(mdFiles))
2025-05-09 01:50:03 +00:00
pdfFilesPub := $(call mdSuffix,$(suffixPub).pdf)
texFilesPub := $(call mdSuffix,$(suffixPub).tex)
2025-05-11 20:49:17 +00:00
pdfFilesInt := $(call mdSuffix,$(suffixInt).pdf)
texFilesInt := $(call mdSuffix,$(suffixInt).tex)
2025-05-09 01:50:03 +00:00
.PHONY: all autodoc
all: pdf tex
autodoc: pdf
2025-05-09 01:50:03 +00:00
.PHONY: pdf tex
pdf: $(pdfFilesPub) $(pdfFilesInt)
tex: $(texFilesPub) $(texFilesInt)
2025-05-11 20:49:17 +00:00
# pdf
%$(suffixPub).pdf: %.prot.md lev-shorthands.sty
python3 /opt/lenaisten/redact.py $< | $(call md2pdfa,-,lev-protokoll,$@)
2025-05-11 20:06:35 +00:00
%$(suffixInt).pdf: %.prot.md lev-shorthands.sty
python3 /opt/lenaisten/redact.py --internal $< | $(call md2pdfa,-,lev-protokoll,$@)
2025-05-11 20:49:17 +00:00
# tex
%$(suffixPub).tex: %.prot.md lev-shorthands.sty
python3 /opt/lenaisten/redact.py $< | $(call compile_md,-,lev-protokoll,latex,$@)
2025-05-11 20:06:35 +00:00
%$(suffixInt).tex: %.prot.md lev-shorthands.sty
python3 /opt/lenaisten/redact.py --internal $< | $(call compile_md,-,lev-protokoll,latex,$@)