threads / patch / 4685

patchcogito: "make clean" fails if make is not GNU make

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

## tl;dr

One message between Jun 27, 2006 and Jun 27, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Dennis Stosberg· Jun 27, 2006, 16:58 UTC · lore

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(-)
Show changes to Documentation/Makefile +2 −2
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

← back to recent threads