summaryrefslogtreecommitdiff
path: root/rules/hs-sources.mk
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2016-06-20 09:02:34 +0200
committerBen Gamari <ben@smart-cactus.org>2016-06-30 20:02:23 +0200
commit0701db125eb32ed0a518d962c9e4ee279e3296fd (patch)
treeed9102cd788355570475234673106c3afd33f933 /rules/hs-sources.mk
parentb8b3e30a6eedf9f213b8a718573c4827cfa230ba (diff)
downloadhaskell-0701db125eb32ed0a518d962c9e4ee279e3296fd.tar.gz
Updates to handle new Cabal
Specifically per-component macros and multiple libraries. Contains Cabal submodule update. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: austin, bgamari Reviewed By: austin, bgamari Subscribers: hvr, thomie Differential Revision: https://phabricator.haskell.org/D2059
Diffstat (limited to 'rules/hs-sources.mk')
-rw-r--r--rules/hs-sources.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/hs-sources.mk b/rules/hs-sources.mk
index 2e77d02a20..20c286dcbe 100644
--- a/rules/hs-sources.mk
+++ b/rules/hs-sources.mk
@@ -28,7 +28,7 @@ endif
$1_$2_HS_SRCS := $$(foreach file,$$($1_$2_SLASH_MODS),\
$$(firstword \
$$(wildcard \
- $$(foreach dir,$$($1_$2_HS_SRC_DIRS) $2/build/autogen,\
+ $$(foreach dir,$$($1_$2_HS_SRC_DIRS) $2/build/$$(or $$($1_EXECUTABLE),$$($1_$2_PROGNAME),.)/autogen,\
$1/$$(dir)/$$(file).hs $1/$$(dir)/$$(file).lhs)) \
$1/$2/build/$$(file).hs))