[commit: ghc] wip/jenkins: Introduce echo! make target (8d76df0)

git at git.haskell.org git at git.haskell.org
Sun Jun 4 14:35:12 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/jenkins
Link       : http://ghc.haskell.org/trac/ghc/changeset/8d76df0f6e622f1dd3db934362392d01918599e5/ghc

>---------------------------------------------------------------

commit 8d76df0f6e622f1dd3db934362392d01918599e5
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Jun 4 10:27:24 2017 -0400

    Introduce echo! make target
    
    This is analogous to show!


>---------------------------------------------------------------

8d76df0f6e622f1dd3db934362392d01918599e5
 Makefile | 4 ++++
 ghc.mk   | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/Makefile b/Makefile
index 9b888e7..4863cd7 100644
--- a/Makefile
+++ b/Makefile
@@ -167,6 +167,10 @@ $(filter clean_%, $(MAKECMDGOALS)) : clean_% :
 bootstrapping-files show echo:
 	$(MAKE) --no-print-directory -f ghc.mk $@
 
+.PHONY: echo!
+echo!:
+	@$(MAKE) --no-print-directory -f ghc.mk echo NO_INCLUDE_PKGDATA=YES
+
 .PHONY: show!
 show!:
 	$(MAKE) --no-print-directory -f ghc.mk show NO_INCLUDE_PKGDATA=YES
diff --git a/ghc.mk b/ghc.mk
index 3fafcf0..dd9d8b6 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -260,6 +260,10 @@ ifeq "$(findstring show,$(MAKECMDGOALS))" "show"
 NO_INCLUDE_DEPS = YES
 # We want package-data.mk for show
 endif
+ifeq "$(findstring echo,$(MAKECMDGOALS))" "echo"
+NO_INCLUDE_DEPS = YES
+# We want package-data.mk for show
+endif
 
 # -----------------------------------------------------------------------------
 # Ways



More information about the ghc-commits mailing list