diff options
| author | unak <[email protected]> | 2014-03-07 12:11:10 +0900 |
|---|---|---|
| committer | unak <[email protected]> | 2014-03-07 12:11:10 +0900 |
| commit | 8ee5b0196bdd47bcd89c276c63145610d89bcd9e (patch) | |
| tree | 63ce61938e97fc8de75cf231054520e1eb3fa2b2 | |
| parent | e40428af7b02870663a6c052496c176c22c5e875 (diff) | |
| download | mruby-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-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |
