diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-11-03 23:27:58 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-11-03 23:27:58 +0000 |
commit | fe684764e68e7eda281192f1fdd637a5bdb50e43 (patch) | |
tree | acd3377ff911700adad9609d475e115c89eddeb8 /Makefile | |
parent | 4a841bfc5464907adea4cdd655485565565b40ae (diff) | |
download | pandoc-fe684764e68e7eda281192f1fdd637a5bdb50e43.tar.gz |
Reverted back to state as of r1062. The template haskell changes
are more trouble than they're worth.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1064 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -4,7 +4,7 @@ # Constant names and commands in source tree #------------------------------------------------------------------------------- CABAL := pandoc.cabal -SRCDIR := . +SRCDIR := src MANDIR := man TESTDIR := tests BUILDDIR := dist @@ -91,6 +91,10 @@ all: build-program %.1: %.1.md $(MAIN) ./$(MAIN) -s -S -w man $< >$@ || rm -f $@ +.PHONY: templates +templates: $(SRCDIR)/templates + $(MAKE) -C $(SRCDIR)/templates + define generate-shell-script echo >&2 "Generating $@..."; \ awk ' \ @@ -114,7 +118,7 @@ $(WRAPPERS): %: $(SRCDIR)/wrappers/%.in $(SRCDIR)/wrappers/*.sh .PHONY: configure cleanup_files+=Setup.hi Setup.o $(BUILDCMD) $(BUILDVARS) -configure: $(BUILDCONF) +configure: $(BUILDCONF) templates $(BUILDCONF): $(CABAL) ghc -package Cabal Setup.hs -o $(BUILDCMD) $(BUILDCMD) configure --prefix=$(PREFIX) @@ -279,6 +283,7 @@ cleanup_files+=$(tarball) tarball: $(tarball) $(tarball): svn export . $(PKGID) + $(MAKE) -C $(PKGID) templates $(MAKE) -C $(PKGID) wrappers tar cvzf $(tarball) $(PKGID) -rm -rf $(PKGID) @@ -338,5 +343,6 @@ distclean: clean fi clean: + make -C $(SRCDIR)/templates clean -if [ -f $(BUILDCONF) ]; then $(BUILDCMD) clean; fi -rm -rf $(cleanup_files) |