From c4f2d0bd40a7ea091a5651ccb88c311ea7d5634b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 25 May 2020 12:48:19 +0300 Subject: [PATCH] wip visvalingam --- II/Referatas/Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/II/Referatas/Makefile b/II/Referatas/Makefile index 82a69dc..dc6f495 100644 --- a/II/Referatas/Makefile +++ b/II/Referatas/Makefile @@ -1,4 +1,8 @@ -GEN = zeimena.pdf douglas-0.pdf douglas-500.pdf douglas-1000.pdf +TOLERANCES = 0 500 1000 + +GEN = $(addsuffix .pdf,zeimena \ + $(addprefix douglas-,$(TOLERANCES)) \ + $(addprefix visvalingam-,$(TOLERANCES))) mj-referatas.pdf: mj-referatas.tex version.tex bib.bib zeimena-pretty.pdf $(GEN) latexmk -g -pdf $< @@ -9,8 +13,15 @@ zeimena.pdf: zeimena.gpkg layer2img.py douglas-%.pdf: layer2img.py db/.faux_douglas-% ./layer2img.py --table=douglas_$* --size=74x52 --outfile $@ -db/.faux_douglas-%: db/.faux_ready douglas.sql - ./managedb -- --echo-all -v ON_ERROR_STOP=1 -v tolerance=$* -f douglas.sql +visvalingam-%.pdf: layer2img.py db/.faux_visvalingam-% + ./layer2img.py --table=visvalingam_$* --size=74x52 --outfile $@ + +db/.faux_visvalingam-%: visvalingam.sql db/.faux_ready + ./managedb -- --echo-all -v ON_ERROR_STOP=1 -v tolerance=$* -f $< + touch $@ + +db/.faux_douglas-%: douglas.sql db/.faux_ready + ./managedb -- --echo-all -v ON_ERROR_STOP=1 -v tolerance=$* -f $< touch $@ db/.faux_ready: zeimena.gpkg managedb