akkadian-lang/Makefile

37 lines
705 B
Makefile
Raw Normal View History

2019-11-23 20:44:07 +00:00
SHELL=/bin/bash
2020-01-20 14:28:58 +00:00
TARGETS = out/Paradigmen-001.pdf out/qnd-staemme.pdf
2019-11-23 20:44:07 +00:00
2020-01-28 09:40:42 +00:00
FROM_FORMAT = markdown+grid_tables+raw_tex+table_captions+yaml_metadata_block+tex_math_dollars
2019-11-26 23:02:35 +00:00
2021-11-09 11:37:10 +00:00
SCRIPT_DIR=./src/scripts
TAB2MD=$(SCRIPT_DIR)/tab2md.awk
TABMD2MD=$(SCRIPT_DIR)/tab-md2md.awk
2021-11-09 11:37:10 +00:00
2019-11-23 20:44:07 +00:00
all: $(TARGETS)
2021-11-09 11:37:10 +00:00
$(info verb_csv_files: $(verb_csv_files))
2019-11-23 20:44:07 +00:00
%.pdf: %.md
2019-11-26 23:02:35 +00:00
pandoc --from $(FROM_FORMAT) --pdf-engine=xelatex -o $@ $<
2019-11-23 20:44:07 +00:00
out/%.pdf: out/%.md
2019-11-26 23:02:35 +00:00
pandoc --from $(FROM_FORMAT) --pdf-engine=xelatex -o $@ $<
2020-01-05 20:21:09 +00:00
out/%.tex: %.md
pandoc --from $(FROM_FORMAT) --pdf-engine=xelatex -o $@ $<
2021-11-09 11:37:10 +00:00
out/%.md: src/tables/%.txt
$(TAB2MD) $< > $@
2020-01-27 15:49:12 +00:00
out/%.md: src/%.tab.md
$(TABMD2MD) $< > $@
2020-01-28 09:40:42 +00:00
.PHONY: verb.md
2020-01-27 15:49:12 +00:00
2019-11-26 23:02:35 +00:00
clean:
rm -f $(TARGETS)
.PHONY: clean