From 6fd9b0a1c6b076ef1977db1a2ce8b9505b9a3254 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Fri, 5 Aug 2022 22:29:57 -0400 Subject: Drop make build system Here we at long last remove the `make`-based build system, it having been replaced with the Shake-based Hadrian build system. Users are encouraged to refer to the documentation in `hadrian/doc` and this [1] blog post for details on using Hadrian. Closes #17527. [1] https://www.haskell.org/ghc/blog/20220805-make-to-hadrian.html --- bindisttest/ghc.mk | 55 ------------------------------------------------------ 1 file changed, 55 deletions(-) delete mode 100644 bindisttest/ghc.mk (limited to 'bindisttest') diff --git a/bindisttest/ghc.mk b/bindisttest/ghc.mk deleted file mode 100644 index b1bd16d8ce..0000000000 --- a/bindisttest/ghc.mk +++ /dev/null @@ -1,55 +0,0 @@ -# ----------------------------------------------------------------------------- -# -# (c) 2009 The University of Glasgow -# -# This file is part of the GHC build system. -# -# To understand how the build system works and how to modify it, see -# https://gitlab.haskell.org/ghc/ghc/wikis/building/architecture -# https://gitlab.haskell.org/ghc/ghc/wikis/building/modifying -# -# ----------------------------------------------------------------------------- - -ifeq "$(TEST_PREP)" "YES" -BIN_DIST_TEST_TAR_COMP = $(BIN_DIST_PREP_TAR_COMP) -else -BIN_DIST_TEST_TAR_COMP = $(BIN_DIST_TAR_COMP) -endif - -.PHONY: test_bindist -test_bindist: - "$(RM)" $(RM_OPTS_REC) bindisttest/$(BIN_DIST_INST_SUBDIR) - "$(RM)" $(RM_OPTS_REC) bindisttest/a - "$(RM)" $(RM_OPTS) bindisttest/HelloWorld - "$(RM)" $(RM_OPTS) bindisttest/HelloWorld.o - "$(RM)" $(RM_OPTS) bindisttest/HelloWorld.hi - "$(RM)" $(RM_OPTS) bindisttest/output -# We use the a/b/c subdirectory as configure looks for install-sh in -# . .. ../.. and we don't want it to find the build system's install-sh. -# -# NB. tar has funny interpretation of filenames sometimes (thinking -# c:/foo is a remote file), so it's safer to bzip and then pipe into -# tar rather than using tar -xjf: - mkdir bindisttest/a - mkdir bindisttest/a/b - mkdir bindisttest/a/b/c - cd bindisttest/a/b/c/ && $(TAR_COMP_CMD) -cd ../../../../$(BIN_DIST_TEST_TAR_COMP) | $(TAR_CMD) -xf - - $(SHELL) bindisttest/checkBinaries.sh $(ProjectVersion) -ifeq "$(Windows_Host)" "YES" - mv bindisttest/a/b/c/$(BIN_DIST_NAME) $(BIN_DIST_INST_DIR) -else - cd bindisttest/a/b/c/$(BIN_DIST_NAME) && ./configure --prefix=$(TOP)/$(BIN_DIST_INST_DIR) CC="$(CC)" - cd bindisttest/a/b/c/$(BIN_DIST_NAME) && $(MAKE) install -endif -ifeq "$(GhcProfiled)" "NO" - $(BIN_DIST_INST_DIR)/bin/runghc bindisttest/HelloWorld > bindisttest/output - $(CONTEXT_DIFF) bindisttest/output bindisttest/expected_output -endif - $(BIN_DIST_INST_DIR)/bin/ghc --make bindisttest/HelloWorld - bindisttest/HelloWorld > bindisttest/output - $(CONTEXT_DIFF) bindisttest/output bindisttest/expected_output -# Without --no-user-package-db we might pick up random packages from ~/.ghc - $(BIN_DIST_INST_DIR)/bin/ghc-pkg check --no-user-package-db - -$(eval $(call clean-target,bindisttest,all,$(BIN_DIST_INST_DIR) $(wildcard bindisttest/a/b/c/*) bindisttest/HelloWorld bindisttest/HelloWorld.o bindisttest/HelloWorld.hi bindisttest/output)) - -- cgit v1.2.1