summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-05-26 21:00:04 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-06-04 23:58:29 +0200
commitcac68d0d340f93738db79ad867fe3f0eec515075 (patch)
treeb04b62e2e430bc30204ad31d011685ed6d25512c /rules
parent092082e7583c8170ae41ef8d01a554db34f91bb3 (diff)
downloadhaskell-cac68d0d340f93738db79ad867fe3f0eec515075.tar.gz
Build: remove unnecessary CLEANING/=YES check
The comment "INPLACE_BIN might be empty if we're distcleaning" is no longer true, and the check that CLEANING isn't YES isn't necessary. It was introduced in cd12c32de77ac18a69ed1733a558095567ec5ba8, to "make repeated 'make distclean' not fail", and and later revised in 39253008705e3ca590afdfa1b87bfbb5a16da7e7. It was needed because INPLACE_BIN was defined in config.mk. Commit 6793a033e1ce41f77316675e8f7aa83196a9b211 however, two days later, introduced a better solution to this problem: "Move the fixed paths out of config.mk, so cleaning works without configuring" So here we remove the original comment and check. One less thing to worry about when trying to understand the build system. Differential Revision: https://phabricator.haskell.org/D940
Diffstat (limited to 'rules')
-rw-r--r--rules/build-perl.mk4
-rw-r--r--rules/build-prog.mk3
2 files changed, 0 insertions, 7 deletions
diff --git a/rules/build-perl.mk b/rules/build-perl.mk
index 51e92f738f..a6725bade7 100644
--- a/rules/build-perl.mk
+++ b/rules/build-perl.mk
@@ -51,8 +51,6 @@ $(call clean-target,$1,$2,$1/$2 $$($1_$2_INPLACE))
.PHONY: clean_$1
clean_$1 : clean_$1_$2
-# INPLACE_BIN etc. might be empty if we're cleaning
-ifneq "$$(CLEANING)" "YES"
ifneq "$$(BINDIST)" "YES"
$1/$2/$$($1_$2_PROG).prl: $1/$$($1_PERL_SRC) $$$$(unlit_INPLACE) | $$$$(dir $$$$@)/.
"$$(unlit_INPLACE)" $$(UNLIT_OPTS) $$< $$@
@@ -67,8 +65,6 @@ $1/$2/$$($1_$2_PROG): $1/$2/$$($1_$2_PROG).prl
$$($1_$2_INPLACE): $1/$2/$$($1_$2_PROG) | $$$$(dir $$$$@)/.
"$$(CP)" $$< $$@
$$(EXECUTABLE_FILE) $$@
-
-endif
endif
ifeq "$$($1_$2_INSTALL)" "YES"
diff --git a/rules/build-prog.mk b/rules/build-prog.mk
index 10d31c5205..3e9bc89e29 100644
--- a/rules/build-prog.mk
+++ b/rules/build-prog.mk
@@ -287,13 +287,10 @@ endif
endif
endif
-# INPLACE_BIN might be empty if we're distcleaning
-ifneq "$$(CLEANING)" "YES"
ifeq "$$($1_$2_INSTALL_INPLACE)" "YES"
$$($1_$2_INPLACE) : $1/$2/build/tmp/$$($1_$2_PROG_INPLACE) | $$$$(dir $$$$@)/.
$$(INSTALL) -m 755 $$< $$@
endif
-endif
endif # BINDIST=YES