summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)