summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-05-14 10:56:45 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-05-14 10:56:45 +0000
commitcd12c32de77ac18a69ed1733a558095567ec5ba8 (patch)
treed67caa869c9f03da14992868f072a6b8eb40763d /rules
parente4b74d50df90bfdd78e279e4d29232648ca22180 (diff)
downloadhaskell-cd12c32de77ac18a69ed1733a558095567ec5ba8.tar.gz
make repeated 'make distclean' not fail
Diffstat (limited to 'rules')
-rw-r--r--rules/build-prog.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/build-prog.mk b/rules/build-prog.mk
index 8f01e66b7b..8397f3fb73 100644
--- a/rules/build-prog.mk
+++ b/rules/build-prog.mk
@@ -128,10 +128,13 @@ endif
$(call all-target,$1_$2,$$($1_$2_INPLACE))
$(call clean-target,$1,$2_inplace,$$($1_$2_INPLACE))
+# INPLACE_BIN might be empty if we're distcleaning
+ifneq "$$(INPLACE_BIN)" ""
$$($1_$2_INPLACE) : $1/$2/build/tmp/$$($1_$2_PROG) $$(MKDIRHIER)
$$(MKDIRHIER) $$(dir $$@)
$$(CP) -p $$< $$@
touch $$@
+endif
# touch is necessary; cp doesn't update the file time.
endif