aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2023-10-29 15:58:04 +0100
committerRobert Alessi <alessi@robertalessi.net>2023-10-29 15:58:04 +0100
commitc23705d1590d39015eb5d9f5c6e8fae7d30f6e64 (patch)
tree47a9cfd846e07415b5056d6a81044694d3660e59 /makefile
parentbd6b6adbc194ab3c874ed47daa08fa1e2c6879f3 (diff)
downloadcourses-c23705d1590d39015eb5d9f5c6e8fae7d30f6e64.tar.gz
updated _preamble.tex
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/makefile b/makefile
index b6518ee..9ab44e5 100644
--- a/makefile
+++ b/makefile
@@ -1,3 +1,4 @@
1SHELL = bash
1exts := md png sh bib tex sty 2exts := md png sh bib tex sty
2findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)") 3findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)")
3 4
@@ -6,7 +7,7 @@ all: pdf
6pdf: clean 7pdf: clean
7 find ./* -type f | grep -v '/_.*.tex' | grep -v 'sandbox' | grep 'tex$$' > texfiles 8 find ./* -type f | grep -v '/_.*.tex' | grep -v 'sandbox' | grep 'tex$$' > texfiles
8 while read l ; do \ 9 while read l ; do \
9 latexmk -quiet -cd -lualatex -e '$$lualatex=q/lualatex %O --shell-escape %S/' $$l ; \ 10 latexmk -cd -lualatex -e '$$lualatex=q/lualatex %O --shell-escape %S/' $$l ; \
10 done < texfiles 11 done < texfiles
11 while read l ; do \ 12 while read l ; do \
12 latexmk -c -cd -lualatex $$l ; \ 13 latexmk -c -cd -lualatex $$l ; \
@@ -22,6 +23,6 @@ clean:
22 cp -p -r .backup/* . 23 cp -p -r .backup/* .
23 rm -rf .backup 24 rm -rf .backup
24 pandoc -s README.tex -o README.md && sed -i 's/{#.*}//g' README.md && sed -i "s/’/\'/g" README.md 25 pandoc -s README.tex -o README.md && sed -i 's/{#.*}//g' README.md && sed -i "s/’/\'/g" README.md
25 pandoc -s README.tex -o about.html 26 pandoc README.tex -o about.html
26 27
27.PHONY: all pdf clean 28.PHONY: all pdf clean