From fa64335b6ead010ff4a5769ce83ee99059b7f630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 25 May 2020 13:44:29 +0300 Subject: [PATCH] one foreach saved --- II/Referatas/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/II/Referatas/Makefile b/II/Referatas/Makefile index ebc0cb6..9bc864b 100644 --- a/II/Referatas/Makefile +++ b/II/Referatas/Makefile @@ -11,8 +11,8 @@ zeimena.pdf: zeimena.gpkg layer2img.py ./layer2img.py --infile=$< --size=74x52 --outfile $@ define algo2layer -db/.faux_$(1)-%: $(1).sql db/.faux_ready - ./managedb -- --echo-all -v ON_ERROR_STOP=1 -v tolerance=$$* -f $(1).sql +db/.faux_$(1)-$(2): $(1).sql db/.faux_ready + ./managedb -- --echo-all -v ON_ERROR_STOP=1 -v tolerance=$(2) -f $(1).sql touch $$@ endef @@ -24,8 +24,8 @@ endef $(eval $(call layer2img,douglas)) $(eval $(call layer2img,visvalingam)) -$(eval $(call algo2layer,douglas)) -$(eval $(call algo2layer,visvalingam)) +$(foreach a,$(TOLERANCES),$(eval $(call algo2layer,douglas,$(a)))) +$(foreach a,$(TOLERANCES),$(eval $(call algo2layer,visvalingam,$(a)))) db/.faux_ready: zeimena.gpkg managedb -./managedb stop; rm -fr db