one foreach saved
This commit is contained in:
parent
605ec9919f
commit
fa64335b6e
@ -11,8 +11,8 @@ zeimena.pdf: zeimena.gpkg layer2img.py
|
|||||||
./layer2img.py --infile=$< --size=74x52 --outfile $@
|
./layer2img.py --infile=$< --size=74x52 --outfile $@
|
||||||
|
|
||||||
define algo2layer
|
define algo2layer
|
||||||
db/.faux_$(1)-%: $(1).sql db/.faux_ready
|
db/.faux_$(1)-$(2): $(1).sql db/.faux_ready
|
||||||
./managedb -- --echo-all -v ON_ERROR_STOP=1 -v tolerance=$$* -f $(1).sql
|
./managedb -- --echo-all -v ON_ERROR_STOP=1 -v tolerance=$(2) -f $(1).sql
|
||||||
touch $$@
|
touch $$@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -24,8 +24,8 @@ endef
|
|||||||
$(eval $(call layer2img,douglas))
|
$(eval $(call layer2img,douglas))
|
||||||
$(eval $(call layer2img,visvalingam))
|
$(eval $(call layer2img,visvalingam))
|
||||||
|
|
||||||
$(eval $(call algo2layer,douglas))
|
$(foreach a,$(TOLERANCES),$(eval $(call algo2layer,douglas,$(a))))
|
||||||
$(eval $(call algo2layer,visvalingam))
|
$(foreach a,$(TOLERANCES),$(eval $(call algo2layer,visvalingam,$(a))))
|
||||||
|
|
||||||
db/.faux_ready: zeimena.gpkg managedb
|
db/.faux_ready: zeimena.gpkg managedb
|
||||||
-./managedb stop; rm -fr db
|
-./managedb stop; rm -fr db
|
||||||
|
Loading…
Reference in New Issue
Block a user