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?ds=sidebyside;hp=67c511b36d56c5042cef47d84a5f91e24f3fcbe5 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