tools: updated autotest and autoweb rules, better fixperms, install is default rule
This commit is contained in:
parent
f617ad82ad
commit
eb84e2fedf
18
Makefile
18
Makefile
@ -63,7 +63,7 @@ VERSIONSENSITIVEFILES=\
|
|||||||
DOWNLOAD.markdown \
|
DOWNLOAD.markdown \
|
||||||
$(CABALFILES) \
|
$(CABALFILES) \
|
||||||
|
|
||||||
default: tag hledger
|
default: tag install
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# BUILDING
|
# BUILDING
|
||||||
@ -98,9 +98,15 @@ allcabal%:
|
|||||||
all%:
|
all%:
|
||||||
for p in $(PACKAGES); do (echo doing $* in $$p; cd $$p; $*); done
|
for p in $(PACKAGES); do (echo doing $* in $$p; cd $$p; $*); done
|
||||||
|
|
||||||
# fix permissions (eg after darcs get)
|
# auto-recompile and run (hledger test) whenever a module changes.
|
||||||
fixperms:
|
# sp is from searchpath.org, you might need the http://joyful.com/repos/searchpath version.
|
||||||
chmod +x $(MAIN) tools/*
|
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
|
# build the standalone unit test runner. Requires test-framework, which
|
||||||
# may not work on windows.
|
# may not work on windows.
|
||||||
@ -691,6 +697,10 @@ showreleasechanges:
|
|||||||
######################################################################
|
######################################################################
|
||||||
# MISCELLANEOUS
|
# MISCELLANEOUS
|
||||||
|
|
||||||
|
# fix permissions (eg after darcs get)
|
||||||
|
fixperms:
|
||||||
|
chmod +x tools/* $(MAIN) hledger-*/Main.hs
|
||||||
|
|
||||||
tag: emacstags
|
tag: emacstags
|
||||||
|
|
||||||
emacstags:
|
emacstags:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user