diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,17 +1,18 @@ | |||
1 | all: clean | 1 | all: pdf |
2 | 2 | ||
3 | pdf: clean | 3 | pdf: clean |
4 | find ./* -type f | grep -v '_.*.tex' | grep 'tex$$' > texfiles | 4 | find ./* -type f | grep -v '_.*.tex' | grep 'tex$$' > texfiles |
5 | while read l ; do \ | 5 | while read l ; do \ |
6 | latexmk -quiet -cd -lualatex $$l ; \ | 6 | latexmk -quiet -cd -lualatex -e '$$lualatex=q/lualatex %O --shell-escape %S/' $$l ; \ |
7 | done < texfiles | 7 | done < texfiles |
8 | while read l ; do \ | 8 | while read l ; do \ |
9 | latexmk -c -cd -lualatex $$l ; \ | 9 | latexmk -c -cd -lualatex $$l ; \ |
10 | done < texfiles | 10 | done < texfiles |
11 | find -type d | grep -i "_minted.*" | xargs rm -rf | ||
11 | clean: | 12 | clean: |
12 | rm -rf .backup | 13 | rm -rf .backup |
13 | find -iname "*~" | xargs rm -rf | 14 | find -iname "*~" | xargs rm -rf |
14 | find ./* -type f | grep 'makefile\|md$$\|tex$$' > ls-R | 15 | find ./* -type f | grep 'makefile\|\.md$$\|\.tex$$' > ls-R |
15 | rsync -avPr --files-from=ls-R . .backup | 16 | rsync -avPr --files-from=ls-R . .backup |
16 | cp ls-R .backup | 17 | cp ls-R .backup |
17 | rm -rf * | 18 | rm -rf * |