2013-03-21 20:14:37 +04:00
|
|
|
.PHONY: build configure doc install linecount nodefault pinstall relib test
|
|
|
|
|
2012-10-29 22:56:53 +04:00
|
|
|
include config.mk
|
2013-03-21 20:14:37 +04:00
|
|
|
-include custom.mk
|
2012-10-29 22:56:53 +04:00
|
|
|
|
2013-03-21 20:14:37 +04:00
|
|
|
install:
|
2013-03-13 05:26:06 +04:00
|
|
|
$(CABAL) install $(CABALFLAGS)
|
2011-10-14 20:59:53 +04:00
|
|
|
|
2013-03-21 20:14:37 +04:00
|
|
|
pinstall: CABALFLAGS += --enable-executable-profiling
|
|
|
|
pinstall: dist/setup-config
|
|
|
|
$(CABAL) install $(CABALFLAGS)
|
2011-10-25 15:46:47 +04:00
|
|
|
|
2013-03-21 20:14:37 +04:00
|
|
|
build: dist/setup-config
|
2013-03-13 05:26:06 +04:00
|
|
|
$(CABAL) build $(CABALFLAGS)
|
2011-10-14 20:59:53 +04:00
|
|
|
|
2013-03-21 20:14:37 +04:00
|
|
|
test:
|
2011-11-18 01:13:33 +04:00
|
|
|
make -C test
|
2011-10-14 20:59:53 +04:00
|
|
|
|
2013-03-21 20:14:37 +04:00
|
|
|
relib:
|
2013-04-04 18:01:08 +04:00
|
|
|
make -C lib IDRIS=../dist/build/idris/idris RTS=../dist/build/rts/libidris_rts clean
|
|
|
|
make -C effects IDRIS=../dist/build/idris/idris DIST=../dist/build clean
|
2013-03-13 05:26:06 +04:00
|
|
|
$(CABAL) install $(CABALFLAGS)
|
2012-01-18 18:34:47 +04:00
|
|
|
|
2013-03-21 20:14:37 +04:00
|
|
|
linecount:
|
2012-10-23 01:33:46 +04:00
|
|
|
wc -l src/Idris/*.hs src/Core/*.hs src/IRTS/*.hs src/Pkg/*.hs
|
2011-10-14 20:59:53 +04:00
|
|
|
|
2013-02-26 14:17:12 +04:00
|
|
|
#Note: this doesn't yet link to Hackage properly
|
2013-03-21 20:14:37 +04:00
|
|
|
doc: dist/setup-config
|
2013-02-26 14:17:12 +04:00
|
|
|
$(CABAL) haddock --executables --hyperlink-source --html --hoogle --html-location="http://hackage.haskell.org/packages/archive/\$$pkg/latest/doc/html" --haddock-options="--title Idris"
|
|
|
|
|
2011-10-14 20:59:53 +04:00
|
|
|
|
2013-03-21 20:14:37 +04:00
|
|
|
dist/setup-config:
|
|
|
|
$(CABAL) configure $(CABALFLAGS)
|