From: Leandro Lucarella Date: Thu, 30 Apr 2009 21:32:00 +0000 (-0300) Subject: Use explicit targets when invoking sub-Makefiles X-Git-Url: https://git.llucax.com/software/posixx.git/commitdiff_plain/a2ee6d5ec3df0dfe487940c8fe88e9ba11fc1c64 Use explicit targets when invoking sub-Makefiles This makes intentions clearer and avoids bugs. --- diff --git a/Makefile b/Makefile index 2d2148f..a4c08fe 100644 --- a/Makefile +++ b/Makefile @@ -10,20 +10,23 @@ default: all all: install: - $(MAKE) -C src $@ + $(MAKE) -C src install doc: - $(MAKE) -C doc $@ + $(MAKE) -C doc -test memtest: - $(MAKE) -C test $@ +test: + $(MAKE) -C test test + +memtest: + $(MAKE) -C test memtest commit-check: doc test memtest clean: - $(MAKE) -C src $@ - $(MAKE) -C doc $@ - $(MAKE) -C test $@ + $(MAKE) -C src clean + $(MAKE) -C doc clean + $(MAKE) -C test clean .PHONY: default all install doc test memtest commit-check clean