diff options
author | Joey Hess <joey@kitenet.net> | 2012-07-26 22:59:14 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-07-26 22:59:14 -0400 |
commit | ff4ab6d6da60ecf9081f743fc13b5785ebe79d12 (patch) | |
tree | 41d98f3d5233ee2cecec0b6106907f750524d0cf /Makefile | |
parent | 615dc09ffc321ce04d3014b3a9f07e7f04b69c80 (diff) |
work around GHC not knowing to rebuild files using template haskell
when things they include change
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |