tools: update/simplify make install

This commit is contained in:
Simon Michael 2012-01-29 18:36:51 +00:00
parent 0670fda22e
commit 795d85f36e

View File

@ -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