Skip to content

Commit

Permalink
Only --force-reinstalls for install, not configure
Browse files Browse the repository at this point in the history
  • Loading branch information
dag committed Aug 29, 2012
1 parent 1a83f9d commit 1cd349c
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions Makefile
@@ -1,25 +1,29 @@
PROJECT = fay PROJECT = fay
CABAL = cabal-dev CABAL = cabal-dev
OPEN = xdg-open CABAL_FLAGS = -fdevel --enable-executable-profiling --enable-library-profiling
FAY = dist/build/fay/fay OPEN = xdg-open
FAY-DOCS = dist/build/fay-docs/fay-docs FAY = dist/build/fay/fay
FAY-TESTS = dist/build/fay-tests/fay-tests FAY-DOCS = dist/build/fay-docs/fay-docs
FAY-TESTS = dist/build/fay-tests/fay-tests


PATH := $(PWD)/cabal-dev/bin:$(PATH) PATH := $(PWD)/cabal-dev/bin:$(PATH)


.PHONY: all configure install doc test .PHONY: all configure install doc test


all: build all: test


configure install: configure:
$(CABAL) $@ -fdevel --enable-executable-profiling --enable-library-profiling --force-reinstalls $(CABAL) $@ $(CABAL_FLAGS)

install:
$(CABAL) $@ $(CABAL_FLAGS) --force-reinstalls


build: configure build: configure
$(CABAL) build $(CABAL) $@


doc: doc:
$(CABAL) haddock $(CABAL) haddock
$(OPEN) "dist/doc/html/$(PROJECT)/index.html" $(OPEN) "dist/doc/html/$(PROJECT)/index.html"


test: test: build
$(FAY-TESTS) +RTS $(RTS) $(FAY-TESTS) +RTS $(RTS)

0 comments on commit 1cd349c

Please sign in to comment.