From 8ee5b0196bdd47bcd89c276c63145610d89bcd9e Mon Sep 17 00:00:00 2001 From: unak Date: Fri, 7 Mar 2014 12:11:10 +0900 Subject: .PHONY should be placed after `all' Because some make (e.g. nmake) recognize it as a normal rule definition and if it's the first rule, make runs it as a default rule. Consequently `all', `test' and `clean' are all ran (because they are depended by .PHONY), and builded files are cleaned. --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d9a3437ad..9a7263872 100644 --- a/Makefile +++ b/Makefile @@ -4,15 +4,14 @@ RAKE = ruby ./minirake -.PHONY : all all : $(RAKE) +.PHONY : all -.PHONY : test test : all $(RAKE) test +.PHONY : test -.PHONY : clean clean : $(RAKE) clean - +.PHONY : clean -- cgit v1.2.3