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 | 5 | # convert jinja syntax to tex |
|
6 | 6 | # cf http://flask.pocoo.org/snippets/55/ |
|
7 | tex/%.tplx: %.tpl | |
|
7 | ../latex/skeleton/%.tplx: %.tpl | |
|
8 | 8 | @echo 'generating tex equivalent of $^: $@' |
|
9 | 9 | @echo '((= autogenerated file do not edit =))' > $@ |
|
10 | 10 | @sed \ |
|
11 | 11 | -e 's/{%/((*/g' \ |
|
12 | 12 | -e 's/%}/*))/g' \ |
|
13 | 13 | -e 's/{{/(((/g' \ |
|
14 | 14 | -e 's/}}/)))/g' \ |
|
15 | 15 | -e 's/{#/((=/g' \ |
|
16 | 16 | -e 's/#}/=))/g' \ |
|
17 | 17 | -e "s/tpl'/tplx'/g" \ |
|
18 | 18 | $^ >> $@ |
|
19 | 19 | |
|
20 | 20 | |
|
21 | 21 | clean: |
|
22 | 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