on 200475f help sign in
Idris-dev/Makefile
33 lines 883 B history raw
1.PHONY: build configure doc install linecount nodefault pinstall relib test
3include config.mk
4-include custom.mk
6install:
7 $(CABAL) install $(CABALFLAGS)
9pinstall: CABALFLAGS += --enable-executable-profiling
10pinstall: dist/setup-config
11 $(CABAL) install $(CABALFLAGS)
13build: dist/setup-config
14 $(CABAL) build $(CABALFLAGS)
16test:
17 make -C test
19relib:
20 make -C lib IDRIS=../dist/build/idris/idris clean
21 make -C effects IDRIS=../dist/build/idris/idris clean
22 $(CABAL) install $(CABALFLAGS)
24linecount:
25 wc -l src/Idris/*.hs src/Core/*.hs src/IRTS/*.hs src/Pkg/*.hs
27#Note: this doesn't yet link to Hackage properly
28doc: dist/setup-config
29 $(CABAL) haddock --executables --hyperlink-source --html --hoogle --html-location="http://hackage.haskell.org/packages/archive/\$$pkg/latest/doc/html" --haddock-options="--title Idris"
32dist/setup-config:
33 $(CABAL) configure $(CABALFLAGS)