]> Git — Sourcephile - comptalang.git/blob - Makefile
Ajout : Model.Filter.Read
[comptalang.git] / Makefile
1 all: install
2 .PHONY: .
3
4 #
5 ## install
6 ###
7 install: cabal/install lib/install cli/install web/install
8 cabal/install:
9 cabal update
10 cabal install -v cabal
11 .PHONY: lib cli web
12 lib lib/install:
13 cabal install -v --force-reinstalls lib/hcompta-lib.cabal
14 cli cli/install:
15 cabal install -v --force-reinstalls cli/hcompta-cli.cabal
16 web web/install:
17 cabal install -v --force-reinstalls web/hcompta-web.cabal
18
19 #
20 ## test
21 ###
22 test: lib/test cli/test web/test
23 lib/test:
24 (cd lib && cabal test --show-details=always)
25 cli/test:
26 (cd cli && cabal test --show-details=always)
27 web/test:
28 (cd web && cabal test --show-details=always)
29
30 #
31 ## doc
32 ###
33 .PHONY: doc
34 doc: doc/xhtml lib/doc cli/doc web/doc
35 lib/doc:
36 (cd lib && cabal haddock --hyperlink-source)
37 cli/doc:
38 (cd cli && cabal haddock --hyperlink-source)
39 web/doc:
40 (cd web && cabal haddock --hyperlink-source)
41 doc/%: .
42 $(MAKE) -C doc $*