Show More
@@ -1,23 +1,23 b'' | |||||
1 |
|
1 | |||
2 |
|
2 | |||
3 | all: tex/null.tplx tex/display_priority.tplx |
|
3 | all: ../latex/skeleton/null.tplx ../latex/skeleton/display_priority.tplx | |
4 |
|
4 | |||
5 | # convert jinja syntax to tex |
|
5 | # convert jinja syntax to tex | |
6 | # cf http://flask.pocoo.org/snippets/55/ |
|
6 | # cf http://flask.pocoo.org/snippets/55/ | |
7 | tex/%.tplx: %.tpl |
|
7 | ../latex/skeleton/%.tplx: %.tpl | |
8 | @echo 'generating tex equivalent of $^: $@' |
|
8 | @echo 'generating tex equivalent of $^: $@' | |
9 | @echo '((= autogenerated file do not edit =))' > $@ |
|
9 | @echo '((= autogenerated file do not edit =))' > $@ | |
10 | @sed \ |
|
10 | @sed \ | |
11 | -e 's/{%/((*/g' \ |
|
11 | -e 's/{%/((*/g' \ | |
12 | -e 's/%}/*))/g' \ |
|
12 | -e 's/%}/*))/g' \ | |
13 | -e 's/{{/(((/g' \ |
|
13 | -e 's/{{/(((/g' \ | |
14 | -e 's/}}/)))/g' \ |
|
14 | -e 's/}}/)))/g' \ | |
15 | -e 's/{#/((=/g' \ |
|
15 | -e 's/{#/((=/g' \ | |
16 | -e 's/#}/=))/g' \ |
|
16 | -e 's/#}/=))/g' \ | |
17 | -e "s/tpl'/tplx'/g" \ |
|
17 | -e "s/tpl'/tplx'/g" \ | |
18 | $^ >> $@ |
|
18 | $^ >> $@ | |
19 |
|
19 | |||
20 |
|
20 | |||
21 | clean: |
|
21 | clean: | |
22 | @echo "cleaning generated tplx files..." |
|
22 | @echo "cleaning generated tplx files..." | |
23 | @rm tex/* |
|
23 | @rm ../latex/skeleton/* |
General Comments 0
You need to be logged in to leave comments.
Login now