Permalink
Browse files

Only --force-reinstalls for install, not configure

  • Loading branch information...
1 parent 1a83f9d commit 1cd349c2a8021f037eb3604872d0e7e6d7e325cc @dag dag committed Aug 29, 2012
Showing with 15 additions and 11 deletions.
  1. +15 −11 Makefile
View
@@ -1,25 +1,29 @@
-PROJECT = fay
-CABAL = cabal-dev
-OPEN = xdg-open
-FAY = dist/build/fay/fay
-FAY-DOCS = dist/build/fay-docs/fay-docs
-FAY-TESTS = dist/build/fay-tests/fay-tests
+PROJECT = fay
+CABAL = cabal-dev
+CABAL_FLAGS = -fdevel --enable-executable-profiling --enable-library-profiling
+OPEN = xdg-open
+FAY = dist/build/fay/fay
+FAY-DOCS = dist/build/fay-docs/fay-docs
+FAY-TESTS = dist/build/fay-tests/fay-tests
PATH := $(PWD)/cabal-dev/bin:$(PATH)
.PHONY: all configure install doc test
-all: build
+all: test
-configure install:
- $(CABAL) $@ -fdevel --enable-executable-profiling --enable-library-profiling --force-reinstalls
+configure:
+ $(CABAL) $@ $(CABAL_FLAGS)
+
+install:
+ $(CABAL) $@ $(CABAL_FLAGS) --force-reinstalls
build: configure
- $(CABAL) build
+ $(CABAL) $@
doc:
$(CABAL) haddock
$(OPEN) "dist/doc/html/$(PROJECT)/index.html"
-test:
+test: build
$(FAY-TESTS) +RTS $(RTS)

0 comments on commit 1cd349c

Please sign in to comment.