@@ -1,32 +1,33 @@
1+.PHONY: build configure doc install linecount nodefault pinstall relib test
1include config.mk
3include config.mk
3−install: .PHONY
6+install:
4 $(CABAL) install $(CABALFLAGS)
7 $(CABAL) install $(CABALFLAGS)
7− $(CABAL) configure --enable-executable-profiling $(CABALFLAGS)
9+pinstall: CABALFLAGS += --enable-executable-profiling
10+pinstall: dist/setup-config
8− $(CABAL) install --enable-executable-profiling $(CABALFLAGS)
11+ $(CABAL) install $(CABALFLAGS)
10−build: .PHONY
13+build: dist/setup-config
11 $(CABAL) build $(CABALFLAGS)
14 $(CABAL) build $(CABALFLAGS)
14− $(CABAL) configure $(CABALFLAGS)
17 make -C test
17 make -C test
19−relib: .PHONY
19+relib:
20 make -C lib IDRIS=../dist/build/idris/idris clean
20 make -C lib IDRIS=../dist/build/idris/idris clean
21 make -C effects IDRIS=../dist/build/idris/idris clean
21 make -C effects IDRIS=../dist/build/idris/idris clean
22 $(CABAL) install $(CABALFLAGS)
22 $(CABAL) install $(CABALFLAGS)
24−linecount : .PHONY
24+linecount:
25 wc -l src/Idris/*.hs src/Core/*.hs src/IRTS/*.hs src/Pkg/*.hs
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
27#Note: this doesn't yet link to Hackage properly
28−doc: .PHONY
28+doc: 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"
29 $(CABAL) haddock --executables --hyperlink-source --html --hoogle --html-location="http://hackage.haskell.org/packages/archive/\$$pkg/latest/doc/html" --haddock-options="--title Idris"
33+ $(CABAL) configure $(CABALFLAGS)