diff options
author | Robert Alessi <alessi@robertalessi.net> | 2018-09-10 14:48:05 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2018-09-10 14:48:05 +0200 |
commit | 0acc26296f54236d2673578da23d453b54fd2786 (patch) | |
tree | 90ac87e95be5c542d1b126ef9c7931a4703371e7 /makefile | |
parent | 16a82c52098043187ffd8124680c7c27a800b140 (diff) | |
download | courses-0acc26296f54236d2673578da23d453b54fd2786.tar.gz |
added pdf: rule in makefile
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,13 @@ | |||
1 | all: clean | 1 | all: clean |
2 | 2 | ||
3 | pdf: clean | ||
4 | find ./* -type f | grep -v '_.*.tex' | grep 'tex$$' > texfiles | ||
5 | while read l ; do \ | ||
6 | latexmk -cd -lualatex $$l ; \ | ||
7 | done < texfiles | ||
8 | while read l ; do \ | ||
9 | latexmk -c -cd -lualatex $$l ; \ | ||
10 | done < texfiles | ||
3 | clean: | 11 | clean: |
4 | rm -rf .backup | 12 | rm -rf .backup |
5 | find -iname "*~" | xargs rm -rf | 13 | find -iname "*~" | xargs rm -rf |