diff options
author | Robert Alessi <alessi@robertalessi.net> | 2023-10-29 15:58:04 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2023-10-29 15:58:04 +0100 |
commit | c23705d1590d39015eb5d9f5c6e8fae7d30f6e64 (patch) | |
tree | 47a9cfd846e07415b5056d6a81044694d3660e59 /makefile | |
parent | bd6b6adbc194ab3c874ed47daa08fa1e2c6879f3 (diff) | |
download | courses-c23705d1590d39015eb5d9f5c6e8fae7d30f6e64.tar.gz |
updated _preamble.tex
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,3 +1,4 @@ | |||
1 | SHELL = bash | ||
1 | exts := md png sh bib tex sty | 2 | exts := md png sh bib tex sty |
2 | findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)") | 3 | findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)") |
3 | 4 | ||
@@ -6,7 +7,7 @@ all: pdf | |||
6 | pdf: clean | 7 | pdf: 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 |