all: pdf pdf: clean find ./* -type f | grep -v '/_.*.tex' | grep 'tex$$' > texfiles while read l ; do \ latexmk -quiet -cd -lualatex -e '$$lualatex=q/lualatex %O --shell-escape %S/' $$l ; \ done < texfiles while read l ; do \ latexmk -c -cd -lualatex $$l ; \ done < texfiles find -type d | grep -i "_minted.*" | xargs rm -rf clean: rm -rf .backup find -iname "*~" | xargs rm -rf find ./* -type f | grep 'makefile\|\.md$$\|\.png$$\|\.bib$$\|\.tex$$' > ls-R rsync -avPr --files-from=ls-R . .backup # cp ls-R .backup rm -rf * cp -p -r .backup/* . rm -rf .backup pandoc -s README.tex -o README.md && sed -i 's/{#.*}//g' README.md && sed -i "s/’/\'/g" README.md