get rid of %
in names too
This commit is contained in:
parent
fa64335b6e
commit
167d963069
@ -10,22 +10,17 @@ mj-referatas.pdf: mj-referatas.tex version.tex bib.bib zeimena-pretty.pdf $(GEN)
|
|||||||
zeimena.pdf: zeimena.gpkg layer2img.py
|
zeimena.pdf: zeimena.gpkg layer2img.py
|
||||||
./layer2img.py --infile=$< --size=74x52 --outfile $@
|
./layer2img.py --infile=$< --size=74x52 --outfile $@
|
||||||
|
|
||||||
define algo2layer
|
define algo2img
|
||||||
db/.faux_$(1)-$(2): $(1).sql db/.faux_ready
|
db/.faux_$(1)-$(2): $(1).sql db/.faux_ready
|
||||||
./managedb -- --echo-all -v ON_ERROR_STOP=1 -v tolerance=$(2) -f $(1).sql
|
./managedb -- --echo-all -v ON_ERROR_STOP=1 -v tolerance=$(2) -f $(1).sql
|
||||||
touch $$@
|
touch db/.faux_$(1)-$(2)
|
||||||
|
|
||||||
|
$(1)-$(2).pdf: layer2img.py db/.faux_$(1)-$(2)
|
||||||
|
./layer2img.py --table=$(1)_$(2) --size=74x52 --outfile $(1)-$(2).pdf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define layer2img
|
$(foreach t,$(TOLERANCES),$(eval $(call algo2img,douglas,$(t))))
|
||||||
$(1)-%.pdf: layer2img.py db/.faux_$(1)-%
|
$(foreach t,$(TOLERANCES),$(eval $(call algo2img,visvalingam,$(t))))
|
||||||
./layer2img.py --table=$(1)_$$* --size=74x52 --outfile $$@
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call layer2img,douglas))
|
|
||||||
$(eval $(call layer2img,visvalingam))
|
|
||||||
|
|
||||||
$(foreach a,$(TOLERANCES),$(eval $(call algo2layer,douglas,$(a))))
|
|
||||||
$(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