Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only --force-reinstalls for install, not configure

  • Loading branch information...
commit 1cd349c2a8021f037eb3604872d0e7e6d7e325cc 1 parent 1a83f9d
Dag Odenhall dag authored
Showing with 15 additions and 11 deletions.
  1. +15 −11 Makefile
26 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)
Please sign in to comment.
Something went wrong with that request. Please try again.