fast build mode for vim

This commit is contained in:
Joey Hess 2011-11-09 21:36:11 -04:00
parent 992bf13382
commit 737f043c55

View file

@ -1,16 +1,26 @@
PREFIX=/usr PREFIX=/usr
IGNORE=-ignore-package monads-fd IGNORE=-ignore-package monads-fd
GHCFLAGS=-O2 -Wall $(IGNORE) -fspec-constr-count=5 GHCFLAGS=-O2 -Wall $(IGNORE) -fspec-constr-count=5
ifdef PROFILE ifdef PROFILE
GHCFLAGS=-prof -auto-all -rtsopts -caf-all -fforce-recomp $(IGNORE) GHCFLAGS=-prof -auto-all -rtsopts -caf-all -fforce-recomp $(IGNORE)
endif endif
GHCMAKE=ghc $(GHCFLAGS) --make GHCMAKE=ghc $(GHCFLAGS) --make
bins=git-annex git-annex-shell git-union-merge bins=git-annex git-annex-shell git-union-merge
mans=git-annex.1 git-annex-shell.1 git-union-merge.1 mans=git-annex.1 git-annex-shell.1 git-union-merge.1
sources=Build/SysConfig.hs Utility/StatFS.hs Utility/Touch.hs Remote/S3.hs sources=Build/SysConfig.hs Utility/StatFS.hs Utility/Touch.hs Remote/S3.hs
all: $(bins) $(mans) docs all=$(bins) $(mans) docs
# Am I typing :make in vim? Do a fast build without optimisation.
ifdef VIM
GHCFLAGS=-Wall $(IGNORE)
all=$(bins)
endif
all: $(all)
Build/SysConfig.hs: configure.hs Build/TestConfig.hs Build/SysConfig.hs: configure.hs Build/TestConfig.hs
$(GHCMAKE) configure $(GHCMAKE) configure