Modifies makefile
Makes clean also delete _minted* directories Stops make from stopping early if files are not there when cleaning
This commit is contained in:
parent
526bafc972
commit
63c02e13f9
1 changed files with 7 additions and 5 deletions
12
Makefile
12
Makefile
|
@ -9,10 +9,6 @@ with-notes.pdf: with-notes.latex
|
|||
with-notes.latex: main.latex $(GRAPHICS_FILES)
|
||||
sed 's/\%showNotes\%//' main.latex > with-notes.latex
|
||||
|
||||
clean:
|
||||
rm *.aux *.log *.out *.toc *.nav *.snm *.pdf *.vrb
|
||||
rm with-notes.latex
|
||||
|
||||
auto-images/auto-xkcd-%.png:
|
||||
mkdir -p auto-images
|
||||
curl https://xkcd.com/$*/info.0.json 2> /dev/null | jq '.img' | sed 's/.png/_2x.png/g' | xargs curl -s -o $@
|
||||
|
@ -24,7 +20,13 @@ auto-images/auto-shell-%.svg: shell-output/%.out
|
|||
mkdir -p auto-images
|
||||
cat shell-output/$*.out | bin/ansi2svg > $@
|
||||
|
||||
clean:
|
||||
- rm *.aux *.log *.out *.toc *.nav *.snm *.pdf *.vrb
|
||||
-rm -rf _minted-main
|
||||
-rm -rf _minted-with-notes
|
||||
- rm with-notes.latex
|
||||
|
||||
clean-images:
|
||||
rm -rf auto-images/
|
||||
- rm -rf auto-images/
|
||||
|
||||
clean-all: clean clean-images
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue