diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-11-29 02:03:07 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-11-29 02:03:07 +0000 |
commit | ae5697e3b4b4836023ae868196758e692a9843f8 (patch) | |
tree | a1d5f884a311749f74965d3f2336cfc7a828ba31 /Makefile | |
parent | b2fa8c7dd2a4ed11413caa20af66ee9987f84e16 (diff) | |
download | pandoc-ae5697e3b4b4836023ae868196758e692a9843f8.tar.gz |
Small improvements in Makefile:
+ Added $(BUILDCMD) target, so setup doesn't get compiled every time.
+ Removed (now circular) dependency of templates on ./templates.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1107 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -93,7 +93,7 @@ all: build-program ./$(MAIN) -s -S -w man $< >$@ || rm -f $@ .PHONY: templates -templates: $(SRCDIR)/templates +templates: $(MAKE) -C $(SRCDIR)/templates define generate-shell-script @@ -128,10 +128,11 @@ $(CABAL_BACKUP): .PHONY: configure cleanup_files+=Setup.hi Setup.o $(BUILDCMD) $(BUILDVARS) configure: $(BUILDCONF) templates -$(BUILDCONF): $(CABAL) $(CABAL_BACKUP) +$(BUILDCMD): Setup.hs $(GHC) -package Cabal Setup.hs -o $(BUILDCMD) +$(BUILDCONF): $(CABAL) $(CABAL_BACKUP) $(BUILDCMD) $(BUILDCMD) configure --prefix=$(PREFIX) --with-compiler=$(GHC) --with-hc-pkg=$(GHC_PKG) - # Make configuration time settings persistent (definitely a hack). + @# Make configuration time settings persistent (definitely a hack). @echo "PREFIX?=$(PREFIX)" >$(BUILDVARS) @echo "DESTDIR?=$(DESTDIR)" >>$(BUILDVARS) |