Makefile
23 lines
| 460 B
| text/x-makefile
|
MakefileLexer
Matthias BUSSONNIER
|
r9608 | |||
all: tex/null.tplx tex/display_priority.tplx | ||||
# convert jinja syntax to tex | ||||
# cf http://flask.pocoo.org/snippets/55/ | ||||
tex/%.tplx: %.tpl | ||||
@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..." | ||||
@rm tex/* | ||||