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

[PATCH] cogito: "make clean" fails if make is not GNU make

From
DSDennis Stosberg <dennis@stosberg.net>
Date
Jun 27, 2006, 16:58 UTC
Message-ID
<20060627165854.G5b420f27@leonov.stosberg.net>

GNU make automatically passes the -w option when -C is used. On systems where GNU make is called "gmake", invoking "make" from within the Makefile will run a make that may not understand that option:

$ gmake -C Documentation/ clean gmake: Entering directory `/usr/home/dennis/tmp/cogito/Documentation' make -C tutorial-script clean make: don't know how to make w. Stop gmake: *** [clean] Error 2

Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
---
 Documentation/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 36295a7..b48e49c 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -60,10 +60,10 @@ install-html: html
 	$(INSTALL) $(DOC_HTML) $(DESTDIR)/$(htmldir)
 
 test:
-	make -C tutorial-script test
+	$(MAKE) -C tutorial-script test
 
 clean:
-	make -C tutorial-script clean
+	$(MAKE) -C tutorial-script clean
 	rm -f *.xml *.html *.pdf *.1 *.7 cg*.[17].txt $(PACKAGE).7.txt
 
 .PRECIOUS: cg%.txt introduction.txt
-- 
1.4.1.rc1.ge6b53
Message 1 of 1 in “cogito: "make clean" fails if make is not GNU make”
  1. cogito: "make clean" fails if make is not GNU makeDennis Stosberg, Jun 27, 2006

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.