From a2ee6d5ec3df0dfe487940c8fe88e9ba11fc1c64 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 30 Apr 2009 18:32:00 -0300 Subject: [PATCH] Use explicit targets when invoking sub-Makefiles This makes intentions clearer and avoids bugs. --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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 -- 2.43.0