diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-06-16 08:44:51 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-06-16 08:44:51 +0000 |
commit | 39253008705e3ca590afdfa1b87bfbb5a16da7e7 (patch) | |
tree | 32557e33997a574e2cedb0570ef4d299463f1772 /rules/build-prog.mk | |
parent | 47e182d4873add885735b831f3528ee5c208cca9 (diff) | |
download | haskell-39253008705e3ca590afdfa1b87bfbb5a16da7e7.tar.gz |
eliminate "warning: overriding commnds..." from make when we're cleaning
Diffstat (limited to 'rules/build-prog.mk')
-rw-r--r-- | rules/build-prog.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/build-prog.mk b/rules/build-prog.mk index 321de02241..6910e8f6e8 100644 --- a/rules/build-prog.mk +++ b/rules/build-prog.mk @@ -137,7 +137,7 @@ $(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)" "" +ifeq "$(findstring clean,$(MAKECMDGOALS))" "" $$($1_$2_INPLACE) : $1/$2/build/tmp/$$($1_$2_PROG) $$(MKDIRHIER) "$$(MKDIRHIER)" $$(dir $$@) "$$(CP)" -p $$< $$@ |