-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
34 lines (22 loc) · 728 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: default clean all print-dist test docs
default: all
-include config.mk
TOP ?= .
HC ?= ghc
HADDOCK ?= haddock
DIST ?= $(TOP)/dist
CABAL ?= cabal
## Compiler Library
$(DIST)/setup-config: murmur-hash.cabal
@echo ">>> ===== Configuring ======================"
$(CABAL) configure --builddir=$(DIST) --user
$(DIST)/build//build/libHSmurmur-hash-0.1.a: $(DIST)/setup-config $(wildcard *.hs)
@echo ">>> ===== Building ========================"
$(CABAL) build --builddir=$(DIST)
docs: $(DIST)/build//build/libHSmurmur-hash-0.1.a
$(CABAL) haddock --builddir=$(DIST)
all: $(DIST)/build//build/libHSmurmur-hash-0.1.a
clean:
$(CABAL) clean --builddir=$(DIST)
print-dist:
@echo $(DIST)