-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (34 loc) · 1.19 KB
/
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
48
49
50
.PHONY: build configure doc install linecount nodefault pinstall lib_clean relib test_c test
include config.mk
-include custom.mk
install:
$(CABAL) install $(CABALFLAGS)
pinstall: CABALFLAGS += --enable-executable-profiling
pinstall: dist/setup-config
$(CABAL) install $(CABALFLAGS)
build: dist/setup-config
$(CABAL) build $(CABALFLAGS)
test: doc test_c
test_c:
$(MAKE) -C test IDRIS=../dist/build/idris
test_java:
$(MAKE) -C test IDRIS=../dist/build/idris test_java
test_llvm:
$(MAKE) -C test IDRIS=../dist/build/idris test_llvm
test_js:
$(MAKE) -C test IDRIS=../dist/build/idris test_js
test_all:
$(MAKE) test
$(MAKE) test_llvm
$(MAKE) test_java
lib_clean:
$(MAKE) -C libs IDRIS=../../dist/build/idris/idris RTS=../../dist/build/rts/libidris_rts clean
relib: lib_clean
$(CABAL) install $(CABALFLAGS)
linecount:
wc -l src/Idris/*.hs src/Core/*.hs src/IRTS/*.hs src/Pkg/*.hs
#Note: this doesn't yet link to Hackage properly
doc: dist/setup-config
$(CABAL) haddock --executables --hyperlink-source --html --hoogle --html-location="http://hackage.haskell.org/packages/archive/\$$pkg/latest/doc/html" --haddock-options="--title Idris"
dist/setup-config:
$(CABAL) configure $(CABALFLAGS)