2020-05-22 19:25:15 +03:00
|
|
|
GEN = zeimena.pdf st-simplify-300.pdf st-simplify-500.pdf st-simplify-1000.pdf
|
2020-05-22 10:19:17 +03:00
|
|
|
|
|
|
|
mj-referatas.pdf: mj-referatas.tex version.tex bib.bib zeimena-pretty.pdf $(GEN)
|
|
|
|
latexmk -g -pdf $<
|
|
|
|
|
|
|
|
zeimena.pdf: zeimena.gpkg
|
|
|
|
./layer2img.py --infile=$< --size=74x52 --outfile $@
|
|
|
|
|
|
|
|
st-simplify-%.pdf: db/.faux_st-simplify-%
|
|
|
|
./layer2img.py --table=douglas_$* --size=74x52 --outfile $@
|
|
|
|
|
|
|
|
db/.faux_st-simplify-%: db/.faux_ready st-simplify.sql
|
2020-05-22 20:20:35 +03:00
|
|
|
./managedb -- --echo-all -v ON_ERROR_STOP=1 -v tolerance=$* -f st-simplify.sql
|
2020-05-22 10:19:17 +03:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
db/.faux_ready: zeimena.gpkg managedb
|
|
|
|
-./managedb stop; rm -fr db
|
|
|
|
./managedb init
|
|
|
|
ogr2ogr -f PostgreSQL "PG:host=127.0.0.1 user=osm dbname=osm" zeimena.gpkg
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
GIT_DIR = $(shell git rev-parse --show-toplevel)/.git
|
|
|
|
version.tex: $(shell git ls-files .) $(GIT_DIR)
|
2020-05-22 22:13:28 +03:00
|
|
|
date "+\\gdef\\GeneratedAt{%F %T %Z}%" > $@
|
|
|
|
printf '\gdef\VCDescribe{%s%s}%%\n' \
|
|
|
|
$(shell git describe --tags) \
|
|
|
|
$(shell git status --porcelain | awk 'NR==1{print "-dirty";exit}') >> $@
|