lev-templates/src/lev-protokoll.mk

46 lines
1.1 KiB
Makefile
Raw Normal View History

#%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
mdFiles := $(wildcard *.prot.md)
mdSuffix = $(patsubst %.prot.md,%$(1),$(mdFiles))
2025-05-09 01:50:03 +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)
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
/opt/lenaisten/redact.py $< | $(call md2pdfa,-,lev-protokoll,$@)
2025-05-11 20:06:35 +00:00
%$(suffixInt).pdf: %.prot.md lev-shorthands.sty
/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
/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
/opt/lenaisten/redact.py --internal $< | $(call compile_md,-,lev-protokoll,latex,$@)