mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 10:17:35 +03:00
tools: update/simplify make install
This commit is contained in:
parent
0670fda22e
commit
795d85f36e
36
Makefile
36
Makefile
@ -114,34 +114,18 @@ default: tag bin/hledger
|
|||||||
######################################################################
|
######################################################################
|
||||||
# BUILDING
|
# BUILDING
|
||||||
|
|
||||||
# set version numbers, fetch dependencies, build and install standard binaries
|
# cabal install all hledger PACKAGES and dependencies in the proper order
|
||||||
# and libs from all hledger packages. A good thing to run first; the other
|
# (or, as many as possible)
|
||||||
# allcabal rules require hledger-VERSION and hledger-lib-VERSION installed.
|
install:
|
||||||
# You may want to change the version number in VERSION file first.
|
cabal install $(patsubst %,./%,$(PACKAGES))
|
||||||
install: allcabalinstall
|
|
||||||
|
|
||||||
# set version numbers and configure all hledger packages
|
# # run a cabal command in all hledger package dirs
|
||||||
configure: allcabalconfigure
|
# allcabal%:
|
||||||
|
# for p in $(PACKAGES); do (echo doing cabal $* in $$p; cd $$p; cabal $*; echo); done
|
||||||
|
|
||||||
# set version numbers and build all hledger packages
|
# # run a command in all hledger package dirs
|
||||||
build: allcabalbuild
|
# all%:
|
||||||
|
# for p in $(PACKAGES); do (echo doing $* in $$p; cd $$p; $*); done
|
||||||
# set version numbers and cabal test all hledger packages
|
|
||||||
cabaltest: allcabaltest
|
|
||||||
|
|
||||||
installdepsdry:
|
|
||||||
for p in $(PACKAGES); do (echo "$$p: cabal install --only-dependencies --dry"; cd $$p; cabal install --only-dependencies --dry); done
|
|
||||||
|
|
||||||
installdeps:
|
|
||||||
for p in $(PACKAGES); do (echo "$$p: cabal install --only-dependencies"; cd $$p; cabal install --only-dependencies); done
|
|
||||||
|
|
||||||
# run a cabal command in all hledger package dirs
|
|
||||||
allcabal%:
|
|
||||||
for p in $(PACKAGES); do (echo doing cabal $* in $$p; cd $$p; cabal $*; echo); done
|
|
||||||
|
|
||||||
# run a command in all hledger package dirs
|
|
||||||
all%:
|
|
||||||
for p in $(PACKAGES); do (echo doing $* in $$p; cd $$p; $*); done
|
|
||||||
|
|
||||||
# auto-recompile and run (something, eg --help or unit tests) whenever a module changes
|
# auto-recompile and run (something, eg --help or unit tests) whenever a module changes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user