From 555a594bdfc14085125c92776f60bb3b1ebd3bd4 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 6 Jun 2011 19:07:03 +0000 Subject: [PATCH] tools: makefile fixes, don't break make when hledger source has errors --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index aa6f7ac85..09b7aacfc 100644 --- a/Makefile +++ b/Makefile @@ -103,10 +103,13 @@ VERSIONSENSITIVEFILES=\ $(CABALFILES) \ hledger-web/.hledger/web/.version \ -BINARYFILENAME:=$(shell touch $(VERSIONHS); runhaskell -ihledger -ihledger-lib $(MAIN) --binary-filename) +# get an accurate binary filename from the current source on the current platform +# nb not := as that would break the makefile when hledger is not compiling. +BINARYFILENAME=$(shell touch $(VERSIONHS); runhaskell -ihledger -ihledger-lib $(MAIN) --binary-filename) + RELEASEBINARYSUFFIX:=$(shell echo "-$(VERSION)-`uname`-`arch`" | tr '[:upper:]' '[:lower:]') -default: tag hledger +default: tag bin/hledger ###################################################################### # BUILDING