From ff4ab6d6da60ecf9081f743fc13b5785ebe79d12 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 26 Jul 2012 22:59:14 -0400 Subject: work around GHC not knowing to rebuild files using template haskell when things they include change --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4a74e712f..a6fdab7ca 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_WEBAPP bins=git-annex mans=git-annex.1 git-annex-shell.1 sources=Build/SysConfig.hs Utility/Touch.hs Utility/Mounts.hs +thfiles=Assistant/Threads/WebApp.hs all=$(bins) $(mans) docs OS:=$(shell uname | sed 's/[-_].*//') @@ -55,8 +56,13 @@ Build/SysConfig.hs: configure.hs Build/TestConfig.hs Build/Configure.hs %.hs: %.hsc hsc2hs $< +# Force GHC to rebuild template haskell files whenever includes +# change +$(thfiles): $(shell echo templates/* static/*) +$(thfiles): + touch $(thfiles) -git-annex: $(sources) $(clibs) +git-annex: $(sources) $(clibs) $(thfiles) $(GHCMAKE) $@ $(clibs) git-annex.1: doc/git-annex.mdwn -- cgit v1.2.3