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

1 messages from 2006-06-27 to 2006-06-27. Participants: Dennis Stosberg.
Thread: https://gitlist.dev/t/4685

## Dennis Stosberg, 2006-06-27 16:58

Subject: [PATCH] cogito: "make clean" fails if make is not GNU make
Message-ID: <20060627165854.G5b420f27@leonov.stosberg.net>
URL: https://gitlist.dev/e/20060627165854.G5b420f27%40leonov.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

```
