tools: fix hledgerwin rule

This commit is contained in:
Simon Michael 2010-07-18 18:44:59 +00:00
parent 9998d51aec
commit 68eef5f810

View File

@ -45,7 +45,7 @@ SOURCEFILES:= \
hledger-lib/Hledger/Data/*hs \
hledger-lib/Hledger/Read/*hs
DOCFILES:=README README2 MANUAL NEWS CONTRIBUTORS SCREENSHOTS
BINARYFILENAME=`runhaskell ./hledger.hs --binary-filename`
BINARYFILENAME=$(shell runhaskell ./hledger.hs --binary-filename)
PATCHLEVEL:=$(shell expr `darcs changes --count --from-tag=\\\\\.` - 1)
WARNINGS:=-W -fwarn-tabs #-fwarn-orphans -fwarn-simple-patterns -fwarn-monomorphism-restriction -fwarn-name-shadowing
DEFINEFLAGS:=-DMAKE -DPATCHLEVEL=$(PATCHLEVEL) $(OPTFLAGS)
@ -114,9 +114,9 @@ hledgermac: setversion
@echo Please check the build looks portable:
otool -L bin/$(BINARYFILENAME)
# build a deployable binary for windows, running make via cygwin presumably
hledgerwin: setversion hledgercabal
cp ~/.cabal/bin/hledger.exe bin/$(BINARYFILENAME)
# build a deployable binary for windows, assuming cygwin tools are present
hledgerwin: setversion #hledgercabal
cp ~/.cabal/bin/hledger.exe bin/`echo $(BINARYFILENAME) | dos2unix`
# auto-recompile and run (with the specified argument) whenever a module changes.
# sp is from searchpath.org, you might need the patched version from