git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] Makefile: Add "make help" telling users to read INSTALL and Makefile

From
Samuel Bronson <naesten@gmail.com>
Date
May 25, 2009, 22:07 UTC
Message-ID
<1243289231-32500-2-git-send-email-naesten@gmail.com>
In-Reply-To
<1243289231-32500-1-git-send-email-naesten@gmail.com>

Without this, "make help" first builds "help.o", then tries to link it to make a "help" executable, which might take a while to fail in a clean tree.

Signed-off-by: Samuel Bronson <naesten@gmail.com>
---
 Makefile |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index eaae45d..07a141d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,12 @@
 # The default target of this Makefile is...
 all::
 
+.PHONY: help
+help:
+	@echo 'Building:'
+	@echo '  For help on building, see the INSTALL file and the comments at'
+	@echo '  the top of Makefile'
+
 # Define V=1 to have a more verbose compile.
 #
 # Define SNPRINTF_RETURNS_BOGUS if your are on a system which snprintf()
-- 
1.6.3.1
Previous: Samuel BronsonNext: Samuel Bronson
Message 2 of 9 in “Documentation/Makefile: add a commented-out ' to unconfuse Emacs”
  1. 1/3 Documentation/Makefile: add a commented-out ' to unconfuse EmacsSamuel Bronson, May 25, 2009
  2. 2/3 Makefile: Add "make help" telling users to read INSTALL and MakefileSamuel Bronson, May 25, 2009
  3. 3/3 Makefile: add commented out 's for Emacs here, tooSamuel Bronson, May 25, 2009
  4. Markus HeidelbergMay 30, 2009
  5. Samuel BronsonMay 30, 2009
  6. Junio C HamanoMay 30, 2009
  7. Markus HeidelbergMay 30, 2009
  8. Samuel BronsonDec 19, 2013
  9. Jonathan NiederDec 19, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.