X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rules%2Fbuild-prog.mk;h=8397f3fb73e9f77bb0724cbd004aaabe6e2f3f29;hb=b64ab38c23af457a190ae3c8fed752f20fd21ae7;hp=8f01e66b7bb060c0a8355272490d8d6364fae8d2;hpb=24adfcd0544942dff994b75f7dd5f72ab3e3d0f4;p=ghc-hetmet.git diff --git a/rules/build-prog.mk b/rules/build-prog.mk index 8f01e66..8397f3f 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