aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
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