summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-02-09 14:59:49 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2014-02-09 15:03:29 +0100
commit7561e37103041d6691c70683f910cdb97952483a (patch)
tree265062d9f2c562547b5a2ff0c6f596821acaab51 /ghc.mk
parent719108f8d70aa50cdaccf564dbc463445a03988e (diff)
downloadhaskell-7561e37103041d6691c70683f910cdb97952483a.tar.gz
double-negate test for Stage1Only to fix `make clean`
This was causing `utils/ghctags/dist-install` to not get removed on `make clean` as `Stage1Only` was unset. So testing for `!= YES` is less fragile than testing for `== NO` in this case. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/ghc.mk b/ghc.mk
index 6628878870..288b1132b6 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -427,7 +427,7 @@ endif
# We normally install only the packages down to this point
REGULAR_INSTALL_PACKAGES := $(addprefix libraries/,$(PACKAGES_STAGE1))
-ifeq "$(Stage1Only)" "NO"
+ifneq "$(Stage1Only)" "YES"
REGULAR_INSTALL_PACKAGES += compiler
endif
REGULAR_INSTALL_PACKAGES += $(addprefix libraries/,$(PACKAGES_STAGE2))
@@ -464,7 +464,7 @@ endif
# If we want to just install everything, then we want all the packages
SUPERSIZE_INSTALL_PACKAGES := $(addprefix libraries/,$(PACKAGES_STAGE1))
-ifeq "$(Stage1Only)" "NO"
+ifneq "$(Stage1Only)" "YES"
SUPERSIZE_INSTALL_PACKAGES += compiler
endif
SUPERSIZE_INSTALL_PACKAGES += $(addprefix libraries/,$(PACKAGES_STAGE2))
@@ -653,7 +653,7 @@ BUILD_DIRS += compiler
BUILD_DIRS += utils/hsc2hs
BUILD_DIRS += utils/ghc-pkg
BUILD_DIRS += utils/testremove
-ifeq "$(Stage1Only)" "NO"
+ifneq "$(Stage1Only)" "YES"
BUILD_DIRS += utils/ghctags
endif
BUILD_DIRS += utils/dll-split