From e7b78c2eec2d5a6c284ecb294112024c7b410f31 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 27 Feb 2013 21:41:51 -0400 Subject: [PATCH] re-enable fast autobuild from vim --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7924d2feb4..9de38f8409 100644 --- a/Makefile +++ b/Makefile @@ -5,13 +5,18 @@ GHC?=ghc GHCMAKE=$(GHC) $(GHCFLAGS) --make PREFIX=/usr +# Am I typing :make in vim? Do a fast build. +ifdef VIM +all=fast +endif + build: $(all) # We bypass cabal, and only run the main ghc --make command for a # fast development built. Note: Does not rebuild C libraries. fast: dist/caballog - $$(grep 'ghc --make' dist/caballog | head -n 1) - ln -sf dist/build/git-annex/git-annex git-annex + @$$(grep 'ghc --make' dist/caballog | head -n 1) + @ln -sf dist/build/git-annex/git-annex git-annex dist/caballog: cabal configure -f"-Production Fast"