From 5bee2174ea63d23b68bec296bc2b559be986cb7f Mon Sep 17 00:00:00 2001 From: bg Date: Tue, 9 Nov 2021 12:37:10 +0100 Subject: [PATCH] updating Makefile --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index ff51f1f..7c74dd2 100644 --- a/Makefile +++ b/Makefile @@ -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