1.PHONY: build configure doc install pinstall gen-types
2
3## Silent by default
4V =
5ifeq ($(strip $(V)),)
6        E = @echo
7        Q = @
8else
9        E = @\#
10        Q =
11endif
12export E Q
13
14PWD:=$(shell pwd)
15include $(PWD)/../config.mk
16
17install: deps
18	$(E) "Installing.."
19	$(CABAL) v1-install $(INSTALL_FLAGS)
20
21pinstall: CONFIG_FLAGS += --enable-executable-profiling
22pinstall: setup-config
23	$(CABAL) v1-install $(CONFIG_FLAGS)
24
25deps:
26	$(CABAL) v1-install --only-dependencies
27
28build: setup-config
29	$(E) "Building..."
30	$(CABAL) v1-build
31
32setup-config:
33	$(CABAL) v1-configure $(CONFIG_FLAGS)
34