diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-08-05 22:29:57 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-08-25 20:05:31 -0400 |
commit | 6fd9b0a1c6b076ef1977db1a2ce8b9505b9a3254 (patch) | |
tree | 862b1a0b8ac78ebddea1cbc4eee597ca4acbb241 /driver | |
parent | 822b0302f3406bb5e916d72c36566322ba900e76 (diff) | |
download | haskell-6fd9b0a1c6b076ef1977db1a2ce8b9505b9a3254.tar.gz |
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
Diffstat (limited to 'driver')
-rw-r--r-- | driver/ghc.mk | 22 | ||||
-rw-r--r-- | driver/ghc/ghc.mk | 24 | ||||
-rw-r--r-- | driver/ghci/ghc.mk | 67 | ||||
-rw-r--r-- | driver/haddock/ghc.mk | 24 |
4 files changed, 0 insertions, 137 deletions
diff --git a/driver/ghc.mk b/driver/ghc.mk deleted file mode 100644 index c1adefe5dc..0000000000 --- a/driver/ghc.mk +++ /dev/null @@ -1,22 +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 -# -# ----------------------------------------------------------------------------- - -$(eval $(call all-target,driver,$(INPLACE_LIB)/ghc-usage.txt $(INPLACE_LIB)/ghci-usage.txt)) - -$(INPLACE_LIB)/ghc-usage.txt: driver/ghc-usage.txt - cp $< $@ - -$(INPLACE_LIB)/ghci-usage.txt: driver/ghci-usage.txt - cp $< $@ - -INSTALL_LIBS += driver/ghc-usage.txt driver/ghci-usage.txt - diff --git a/driver/ghc/ghc.mk b/driver/ghc/ghc.mk deleted file mode 100644 index 46fccefdfa..0000000000 --- a/driver/ghc/ghc.mk +++ /dev/null @@ -1,24 +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 "$(Windows_Host)" "YES" - -driver/ghc_dist_C_SRCS = ghc.c ../utils/cwrapper.c ../utils/getLocation.c -driver/ghc_dist_CC_OPTS += -I driver/utils -driver/ghc_dist_PROGNAME = ghc-$(ProjectVersion) -driver/ghc_dist_INSTALL = YES -driver/ghc_dist_INSTALL_INPLACE = NO - -$(eval $(call build-prog,driver/ghc,dist,0)) - -endif - diff --git a/driver/ghci/ghc.mk b/driver/ghci/ghc.mk deleted file mode 100644 index 9ddab61649..0000000000 --- a/driver/ghci/ghc.mk +++ /dev/null @@ -1,67 +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 "$(GhcWithInterpreter)" "YES" -ifneq "$(Windows_Host)" "YES" - -install: install_driver_ghci - -.PHONY: install_driver_ghci -install_driver_ghci: WRAPPER=$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghci-$(ProjectVersion) -install_driver_ghci: - $(INSTALL_DIR) "$(DESTDIR)$(bindir)" - $(call removeFiles, "$(WRAPPER)") - $(CREATE_SCRIPT) "$(WRAPPER)" - echo '#!/bin/sh' >> "$(WRAPPER)" - echo 'exec "$(bindir)/$(CrossCompilePrefix)ghc-$(ProjectVersion)" --interactive "$$@"' >> "$(WRAPPER)" - $(EXECUTABLE_FILE) "$(WRAPPER)" - $(call removeFiles,"$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghci") - $(LN_S) $(CrossCompilePrefix)ghci-$(ProjectVersion) "$(DESTDIR)$(bindir)/$(CrossCompilePrefix)ghci" - -else # Windows_Host... - -driver/ghci_dist_C_SRCS = ghci.c ../utils/cwrapper.c ../utils/getLocation.c ../utils/isMinTTY.c -driver/ghci_dist_CC_OPTS += -I driver/utils -driver/ghci_dist_PROGNAME = ghci -driver/ghci_dist_INSTALL = YES -driver/ghci_dist_INSTALL_INPLACE = YES -driver/ghci_dist_OTHER_OBJS = driver/ghci/ghci.res - -$(eval $(call build-prog,driver/ghci,dist,1)) - -driver/ghci_dist_PROG_VER = ghci-$(ProjectVersion)$(exeext1) - -INSTALL_BINS += driver/ghci/dist/build/tmp/$(driver/ghci_dist_PROG_VER) - -driver/ghci/ghci.res : driver/ghci/ghci.rc driver/ghci/ghci.ico - "$(WINDRES)" --preprocessor="$(CPP) -xc -DRC_INVOKED" -o driver/ghci/ghci.res -i driver/ghci/ghci.rc -O coff - -driver/ghci/dist/build/tmp/$(driver/ghci_dist_PROG_VER) : driver/ghci/dist/build/tmp/$(driver/ghci_dist_PROG) - "$(CP)" $< $@ - -install : install_driver_ghcii - -.PHONY: install_driver_ghcii -install_driver_ghcii: GHCII_SCRIPT=$(DESTDIR)$(bindir)/ghcii.sh -install_driver_ghcii: GHCII_SCRIPT_VERSIONED = $(DESTDIR)$(bindir)/ghcii-$(ProjectVersion).sh -install_driver_ghcii: - $(INSTALL_DIR) "$(DESTDIR)$(bindir)" - $(call removeFiles,"$(GHCII_SCRIPT)") - echo "#!/bin/sh" >> $(GHCII_SCRIPT) - echo 'exec "$$(dirname "$$0")"/ghc --interactive "$$@"' >> $(GHCII_SCRIPT) - $(EXECUTABLE_FILE) $(GHCII_SCRIPT) - cp $(GHCII_SCRIPT) $(GHCII_SCRIPT_VERSIONED) - $(EXECUTABLE_FILE) $(GHCII_SCRIPT_VERSIONED) - -endif -endif - diff --git a/driver/haddock/ghc.mk b/driver/haddock/ghc.mk deleted file mode 100644 index 24417b8d7f..0000000000 --- a/driver/haddock/ghc.mk +++ /dev/null @@ -1,24 +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 "$(Windows_Host)" "YES" - -driver/haddock_dist_C_SRCS = haddock.c ../utils/cwrapper.c ../utils/getLocation.c -driver/haddock_dist_CC_OPTS += -I driver/utils -driver/haddock_dist_PROGNAME = haddock-$(ProjectVersion) -driver/haddock_dist_INSTALL = YES -driver/haddock_dist_INSTALL_INPLACE = NO - -$(eval $(call build-prog,driver/haddock,dist,0)) - -endif - |