updating Makefile

This commit is contained in:
bg nerilex 2021-11-09 12:37:10 +01:00
parent ebfc318022
commit 5bee2174ea
1 changed files with 7 additions and 7 deletions

View File

@ -4,8 +4,13 @@ TARGETS = out/Paradigmen-001.pdf out/qnd-staemme.pdf
FROM_FORMAT = markdown+grid_tables+raw_tex+table_captions+yaml_metadata_block+tex_math_dollars
SCRIPT_DIR=./src/scripts
TAB2MD=$(SCRIPT_DIR)/tab2md.awk
all: $(TARGETS)
$(info verb_csv_files: $(verb_csv_files))
%.pdf: %.md
pandoc --from $(FROM_FORMAT) --pdf-engine=xelatex -o $@ $<
@ -15,13 +20,8 @@ out/%.pdf: %.md
out/%.tex: %.md
pandoc --from $(FROM_FORMAT) --pdf-engine=xelatex -o $@ $<
verb.md: verb.csv
sed -e '2,$$ s/--/-\\-/g' \
-e '2,$$ s/v/$$v_k$$/g' \
-e '2,$$ s/w/$$v'"'"'_k$$/g' \
-e '2,$$ s/w/$$v'"''"'_k$$/g' verb.csv \
| tr '\t' ';' | csvtomd -d ';' -p 1 > $@
out/%.md: src/tables/%.txt
$(TAB2MD) $< > $@
.PHONY: verb.md