aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-26 22:59:14 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-26 22:59:14 -0400
commitff4ab6d6da60ecf9081f743fc13b5785ebe79d12 (patch)
tree41d98f3d5233ee2cecec0b6106907f750524d0cf /Makefile
parent615dc09ffc321ce04d3014b3a9f07e7f04b69c80 (diff)
work around GHC not knowing to rebuild files using template haskell
when things they include change
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
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