From 66da30cd7853854572192edc3e9ef0fda313bc5e Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Tue, 19 Dec 2006 22:20:58 +0000 Subject: 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 --- Makefile | 1 + src/templates/Makefile | 4 ++++ 2 files changed, 5 insertions(+) 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) -- cgit v1.2.3