Makefile
23 lines
| 516 B
| text/x-makefile
|
MakefileLexer
Matthias BUSSONNIER
|
r9608 | |||
MinRK
|
r12455 | all: ../latex/skeleton/null.tplx ../latex/skeleton/display_priority.tplx | ||
Matthias BUSSONNIER
|
r9608 | |||
# convert jinja syntax to tex | ||||
# cf http://flask.pocoo.org/snippets/55/ | ||||
MinRK
|
r12455 | ../latex/skeleton/%.tplx: %.tpl | ||
Matthias BUSSONNIER
|
r9608 | @echo 'generating tex equivalent of $^: $@' | ||
@echo '((= autogenerated file do not edit =))' > $@ | ||||
@sed \ | ||||
-e 's/{%/((*/g' \ | ||||
-e 's/%}/*))/g' \ | ||||
-e 's/{{/(((/g' \ | ||||
-e 's/}}/)))/g' \ | ||||
-e 's/{#/((=/g' \ | ||||
-e 's/#}/=))/g' \ | ||||
Matthias BUSSONNIER
|
r9611 | -e "s/tpl'/tplx'/g" \ | ||
Matthias BUSSONNIER
|
r9608 | $^ >> $@ | ||
clean: | ||||
@echo "cleaning generated tplx files..." | ||||
MinRK
|
r12455 | @rm ../latex/skeleton/* | ||