cabal install -v $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) cabal
.PHONY: lib cli web
lib lib/install:
- cabal install -v --force-reinstalls $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) lib/hcompta-lib.cabal
+ cabal install -v --force-reinstalls $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) ./lib
cli cli/install:
- cabal install -v --force-reinstalls $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) cli/hcompta-cli.cabal
+ cabal install -v --force-reinstalls $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) ./cli
web web/install:
- cabal install -v --force-reinstalls $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) web/hcompta-web.cabal
+ cabal install -v --force-reinstalls $(CABAL_FLAGS) $(CABAL_INSTALL_FLAGS) ./web
+
+#
+## clean
+###
+clean: lib/clean cli/clean web/clean doc/clean
+lib/clean:
+ (cd lib && cabal clean)
+cli/clean:
+ (cd cli && cabal clean)
+web/clean:
+ (cd web && cabal clean)
#
## test
(cd cli && cabal test --show-details=always $(CABAL_FLAGS) $(CABAL_TEST_FLAGS))
web/test:
(cd web && cabal test --show-details=always $(CABAL_FLAGS) $(CABAL_TEST_FLAGS))
+%/install/test: CABAL_INSTALL_FLAGS+=--enable-tests
+%/install/test: %/install
+
#
## doc
%/dev: CABAL_INSTALL_FLAGS+=-fdev
%/dev: %
+
+#
+## not-threaded
+###
+%/not-threaded: CABAL_INSTALL_FLAGS+=-f-threaded
+%/not-threaded: %
+
#