diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-01-06 13:54:46 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-01-06 14:00:38 +0100 |
commit | 867f9da4bbad7c518603ed98addbf2c96a2eee5b (patch) | |
tree | 33056fbea4d85a8a3fc25cce5c15ad5583b42cf3 /Makefile | |
parent | 0d69368bc2a4179bc1745a6c1d9dac6ec83dbc58 (diff) |
Add clean and distclean targets.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -73,3 +73,12 @@ XELATEX = xelatex -no-shell-escape -halt-on-error -interaction=batchmode $(XELATEX) $< $(XELATEX) $< $(XELATEX) $< + +clean: + rm -f $(foreach ext,pdf aux log out toc tex,$(flavors:%=$(stem)-%.$(ext))) + rm -f $(foreach ext,native bib mw,$(stem:%=%.$(ext))) + rm -f $(foreach ext,aux tex,$(includes:%.tex=%.$(ext))) + rm -f $(mediawiki_includes) + +distclean: clean + rm -f $(stem:%=%.raw) |