summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorunak <[email protected]>2014-03-07 12:11:10 +0900
committerunak <[email protected]>2014-03-07 12:11:10 +0900
commit8ee5b0196bdd47bcd89c276c63145610d89bcd9e (patch)
tree63ce61938e97fc8de75cf231054520e1eb3fa2b2
parente40428af7b02870663a6c052496c176c22c5e875 (diff)
downloadmruby-8ee5b0196bdd47bcd89c276c63145610d89bcd9e.tar.gz
mruby-8ee5b0196bdd47bcd89c276c63145610d89bcd9e.zip
.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.
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
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