summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-01-06 13:54:46 +0100
committerJonas Smedegaard <dr@jones.dk>2015-01-06 14:00:38 +0100
commit867f9da4bbad7c518603ed98addbf2c96a2eee5b (patch)
tree33056fbea4d85a8a3fc25cce5c15ad5583b42cf3 /Makefile
parent0d69368bc2a4179bc1745a6c1d9dac6ec83dbc58 (diff)
Add clean and distclean targets.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 86111bd..26c3d8b 100644
--- a/Makefile
+++ b/Makefile
@@ -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)