forked from idris-lang/Idris-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (26 loc) · 1.14 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
.PHONY: build configure doc install linecount nodefault pinstall relib 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:
make -C test IDRIS=../dist/build/idris
test_java:
make -C test IDRIS=../dist/build/idris test_java
relib:
make -C lib IDRIS=../dist/build/idris/idris RTS=../dist/build/rts/libidris_rts clean
make -C effects IDRIS=../dist/build/idris/idris RTS=../dist/build/rts/libidris_rts DIST=../dist/build clean
make -C javascript IDRIS=../dist/build/idris/idris RTS=../dist/build/rts/libidris_rts DIST=../dist/build 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)