aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-12-19 22:20:58 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-12-19 22:20:58 +0000
commit66da30cd7853854572192edc3e9ef0fda313bc5e (patch)
tree8d2dc0a3b658c292a0ed95ed7644ee5e52570e21
parent31a956b65559ea669d5705e005ac3d6641d7518e (diff)
downloadpandoc-66da30cd7853854572192edc3e9ef0fda313bc5e.tar.gz
Added 'clean' target to src/templates/Makefile, main
Makefile's 'clean' calls it to clean out template-generated files. git-svn-id: https://pandoc.googlecode.com/svn/trunk@237 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r--Makefile1
-rw-r--r--src/templates/Makefile4
2 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2f45dce44..31bec5a15 100644
--- a/Makefile
+++ b/Makefile
@@ -380,5 +380,6 @@ distclean: clean
fi
clean:
+ make -C $(SRCDIR)/templates clean
-if [ -f $(BUILDCONF) ]; then $(BUILDCMD) clean; fi
-rm -rf $(cleanup_files)
diff --git a/src/templates/Makefile b/src/templates/Makefile
index c3256b87e..9522666c5 100644
--- a/src/templates/Makefile
+++ b/src/templates/Makefile
@@ -14,3 +14,7 @@ Text/Pandoc/Writers/S5.hs: S5.hs $(PROCESSOR) $(VPATH)/ui/default/*
Text/Pandoc/Writers/DefaultHeaders.hs: DefaultHeaders.hs $(PROCESSOR) $(VPATH)/headers/*
perl $(PROCESSOR) $@ $(VPATH)
+
+.PHONY: clean
+clean:
+ cd $(VPATH); rm -f $(TARGETS)