Idris-dev/Makefile

34 lines
937 B
Makefile
Raw Normal View History

2013-03-21 20:14:37 +04:00
.PHONY: build configure doc install linecount nodefault pinstall relib test
include config.mk
2013-03-21 20:14:37 +04:00
-include custom.mk
2013-03-21 20:14:37 +04:00
install:
$(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
$(CABAL) build $(CABALFLAGS)
2011-10-14 20:59:53 +04:00
2013-03-21 20:14:37 +04:00
test:
make -C test
2011-10-14 20:59:53 +04:00
2013-03-21 20:14:37 +04:00
relib:
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
$(CABAL) install $(CABALFLAGS)
2013-03-21 20:14:37 +04:00
linecount:
wc -l src/Idris/*.hs src/Core/*.hs src/IRTS/*.hs src/Pkg/*.hs
2011-10-14 20:59:53 +04:00
#Note: this doesn't yet link to Hackage properly
2013-03-21 20:14:37 +04:00
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"
2011-10-14 20:59:53 +04:00
2013-03-21 20:14:37 +04:00
dist/setup-config:
$(CABAL) configure $(CABALFLAGS)