mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 10:17:35 +03:00
tools: new/improved install[deps][-force] make rules
This commit is contained in:
parent
ec243a1bea
commit
d089c90e86
22
Makefile
22
Makefile
@ -36,11 +36,13 @@ PACKAGES=\
|
|||||||
hledger-lib \
|
hledger-lib \
|
||||||
hledger \
|
hledger \
|
||||||
hledger-web
|
hledger-web
|
||||||
|
|
||||||
INCLUDEPATHS=\
|
INCLUDEPATHS=\
|
||||||
-ihledger-lib \
|
-ihledger-lib \
|
||||||
-ihledger \
|
-ihledger \
|
||||||
-ihledger-web \
|
-ihledger-web \
|
||||||
-ihledger-web/app
|
-ihledger-web/app
|
||||||
|
|
||||||
MAIN=hledger/hledger-cli.hs
|
MAIN=hledger/hledger-cli.hs
|
||||||
|
|
||||||
# all source files in the project (plus a few strays like Setup.hs & hlint.hs)
|
# all source files in the project (plus a few strays like Setup.hs & hlint.hs)
|
||||||
@ -154,11 +156,25 @@ defaulttarget: bin/hledgerdev
|
|||||||
######################################################################
|
######################################################################
|
||||||
# BUILDING
|
# BUILDING
|
||||||
|
|
||||||
# cabal install all hledger PACKAGES and dependencies in the proper order
|
|
||||||
# (or, as many as possible)
|
|
||||||
EXTRAINSTALLARGS=
|
EXTRAINSTALLARGS=
|
||||||
|
|
||||||
|
# cabal install the main hledger packages and all their dependencies
|
||||||
install:
|
install:
|
||||||
$(CABALINSTALL) $(patsubst %,./%,$(PACKAGES)) $(EXTRAINSTALLARGS)
|
$(CABALINSTALL) $(patsubst %,./%,$(PACKAGES)) $(EXTRAINSTALLARGS) --enable-tests
|
||||||
|
|
||||||
|
# cabal install the main hledger packages and all their dependencies, more forcibly
|
||||||
|
# (may break installed libs, requiring ghc-pkg-clean)
|
||||||
|
install-force:
|
||||||
|
$(CABALINSTALL) $(patsubst %,./%,$(PACKAGES)) $(EXTRAINSTALLARGS) --enable-tests --allow-newer --force-reinstalls
|
||||||
|
|
||||||
|
# install all cabal dependencies for the main hledger packages
|
||||||
|
installdeps:
|
||||||
|
$(CABALINSTALL) $(patsubst %,./%,$(PACKAGES)) $(EXTRAINSTALLARGS) --enable-tests --only-dependencies
|
||||||
|
|
||||||
|
# install all cabal dependencies for the main hledger packages, more forcibly
|
||||||
|
# (may break installed libs, requiring ghc-pkg-clean)
|
||||||
|
installdeps-force:
|
||||||
|
$(CABALINSTALL) $(patsubst %,./%,$(PACKAGES)) $(EXTRAINSTALLARGS) --enable-tests --only-dependencies --allow-newer --force-reinstalls
|
||||||
|
|
||||||
# run a cabal command in all hledger package dirs
|
# run a cabal command in all hledger package dirs
|
||||||
allcabal%:
|
allcabal%:
|
||||||
|
Loading…
Reference in New Issue
Block a user