tools: updated autotest and autoweb rules, better fixperms, install is default rule

This commit is contained in:
Simon Michael 2010-09-10 01:57:41 +00:00
parent f617ad82ad
commit eb84e2fedf

View File

@ -63,7 +63,7 @@ VERSIONSENSITIVEFILES=\
DOWNLOAD.markdown \
$(CABALFILES) \
default: tag hledger
default: tag install
######################################################################
# BUILDING
@ -98,9 +98,15 @@ allcabal%:
all%:
for p in $(PACKAGES); do (echo doing $* in $$p; cd $$p; $*); done
# fix permissions (eg after darcs get)
fixperms:
chmod +x $(MAIN) tools/*
# auto-recompile and run (hledger test) whenever a module changes.
# sp is from searchpath.org, you might need the http://joyful.com/repos/searchpath version.
autotest: setversion
sp --no-exts --no-default-map -o bin/hledger ghc --make hledger/hledger.hs -ihledger $(BUILDFLAGS) --run test
# auto-recompile and run (hledger-web) whenever a module changes.
# sp is from searchpath.org, you might need the http://joyful.com/repos/searchpath version.
autoweb: setversion
sp --no-exts --no-default-map -o bin/hledger-web ghc --make hledger-web/Main.hs -ihledger-web -ihledger $(BUILDFLAGS) --run
# build the standalone unit test runner. Requires test-framework, which
# may not work on windows.
@ -691,6 +697,10 @@ showreleasechanges:
######################################################################
# MISCELLANEOUS
# fix permissions (eg after darcs get)
fixperms:
chmod +x tools/* $(MAIN) hledger-*/Main.hs
tag: emacstags
emacstags: