forked from cpennington/h4sh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 737 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
35
36
37
38
39
40
41
42
43
44
45
46
47
# configuration variables
#
# installation prefix
PREFIX?=/usr/local
# GNU m4 command (leave blank to use /usr/local/bin/gm4)
GM4 = m4
# Options:
# "mmap"
# "packed"
# "list"
# default: mmap
#
# Try "packed", if the default produces segfaults, and try "list" if
# "packed "is flakey too.
#
IO_MODE=packed
GHC = ghc
default: all
.PHONY: all build install clean check
all: build
build:
$(GHC) --make -o build Build.hs
./build $(IO_MODE)
cabal configure --enable-shared
cabal build
install:
cabal install
clean:
./build clean
cabal clean
rm -rf *.hi *.o *~
rm -rf h4sh.cabal
rm -rf build dist
cd testsuite && $(MAKE) clean
check:
@echo "Running testsuite"
( cd testsuite ; GM4="$(GM4)" $(MAKE); ./run-utests )