-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
82 lines (58 loc) · 1.86 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
.PHONY: build configure doc install linecount nodefault pinstall lib_clean relib fast test_js test_c stylize test test_clean lib_doc lib_doc_clean user_doc_html user_doc_pdf user_docs
ARGS=
TEST-JOBS=
TEST-ARGS=
include config.mk
-include custom.mk
ifdef CI
CABALFLAGS += -f CI
ifndef APPVEYOR
TEST-ARGS += --color always
endif
endif
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 stylize
stylize:
./stylize.sh
test_c:
$(CABAL) test $(ARGS) --test-options \
"$(TEST-ARGS) --rerun-update +RTS -N$(TEST-JOBS) -RTS"
test_js:
$(CABAL) test $(ARGS) --test-options \
"$(TEST-ARGS) --node --rerun-update +RTS -N$(TEST-JOBS) -RTS"
test_update:
$(CABAL) test $(ARGS) --test-options \
"$(TEST-ARGS) --accept +RTS -N$(TEST-JOBS) -RTS"
test_clean:
rm -f test/*~
rm -f test/*/output
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/Idris/Elab/*.hs src/Idris/Core/*.hs src/IRTS/*.hs src/Pkg/*.hs src/Util/*.hs
#Note: this doesn't yet link to Hackage properly
doc: dist/setup-config
$(CABAL) haddock --hyperlink-source --html --hoogle --html-location="http://hackage.haskell.org/packages/archive/\$$pkg/latest/doc/html" --haddock-options="--title Idris"
lib_doc:
$(MAKE) -C libs IDRIS=../../dist/build/idris/idris doc
lib_doc_clean:
$(MAKE) -C libs IDRIS=../../dist/build/idris/idris doc_clean
user_docs: user_doc_html user_doc_pdf
user_doc_clean:
$(MAKE) -C docs clean
user_doc_html:
$(MAKE) -C docs html
user_doc_pdf:
$(MAKE) -C docs latexpdf
fast:
$(CABAL) install $(CABALFLAGS) --ghc-option=-O0
dist/setup-config:
$(CABAL) configure $(CABALFLAGS)