7 install: cabal/install lib/install cli/install web/install
9 cabal update $(CABAL_FLAGS) $(CABAL_UPDATE_FLAGS)
10 cabal install -v $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) cabal
13 cabal install -v --force-reinstalls $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) ./lib
15 cabal install -v --force-reinstalls $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) ./cli
17 cabal install -v $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) alex happy
18 cabal install -v --force-reinstalls $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) ./web
23 clean: lib/clean cli/clean web/clean doc/clean
25 (cd lib && cabal clean)
27 (cd cli && cabal clean)
29 (cd web && cabal clean)
34 test: lib/test cli/test web/test
36 (cd lib && cabal test --show-details=always $(CABAL_FLAGS) $(CABAL_TEST_FLAGS))
38 (cd cli && cabal test --show-details=always $(CABAL_FLAGS) $(CABAL_TEST_FLAGS))
40 (cd web && cabal test --show-details=always $(CABAL_FLAGS) $(CABAL_TEST_FLAGS))
41 %/install/test: CABAL_INSTALL_FLAGS+=--enable-tests
42 %/install/test: %/install
49 doc: doc/xhtml lib/doc cli/doc web/doc
51 (cd lib && cabal haddock --hyperlink-source $(CABAL_FLAGS) $(CABAL_HADDOCK_FLAGS))
53 (cd cli && cabal haddock --hyperlink-source $(CABAL_FLAGS) $(CABAL_HADDOCK_FLAGS))
55 (cd web && cabal haddock --hyperlink-source $(CABAL_FLAGS) $(CABAL_HADDOCK_FLAGS))
62 %/dev: CABAL_INSTALL_FLAGS+=-fdev
69 %/not-threaded: CABAL_INSTALL_FLAGS+=-f-threaded