[commit: ghc] master: build: fix 'make help' (e642de6)

git at git.haskell.org git at git.haskell.org
Sat Mar 7 17:19:06 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e642de625651c4af0e42932d447d1f53b218aebf/ghc

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

commit e642de625651c4af0e42932d447d1f53b218aebf
Author: Austin Seipp <austin at well-typed.com>
Date:   Sat Mar 7 11:18:44 2015 -0600

    build: fix 'make help'
    
    Summary:
    This fixes the usage of `make help` in the top-level and subdirectories.
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>
    
    Test Plan: It worked now and didn't before.
    
    Reviewers: hvr
    
    Reviewed By: hvr
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D692


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

e642de625651c4af0e42932d447d1f53b218aebf
 Makefile           | 2 +-
 mk/sub-makefile.mk | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 60853bc..83ef07c 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ default : all
 # For help, type 'make help'
 .PHONY: help
 help:
-	@cat MAKEHELP
+	@cat MAKEHELP.md
 
 ifneq "$(filter maintainer-clean distclean clean help,$(MAKECMDGOALS))" ""
 -include mk/config.mk
diff --git a/mk/sub-makefile.mk b/mk/sub-makefile.mk
index fdaf830..0ed85c8 100644
--- a/mk/sub-makefile.mk
+++ b/mk/sub-makefile.mk
@@ -59,4 +59,4 @@ help : sub-help
 sub-help :
 	@echo "You are in subdirectory \"$(dir)\"."
 	@echo "Useful targets in this directory:"
-	@cat $(TOP)/SUBMAKEHELP
+	@sed '1,/Using `make` in subdirectories/d' $(TOP)/MAKEHELP.md



More information about the ghc-commits mailing list