title: Makefile crashes on target clean
body: <p>I'm tring to compile a c++ project with make, i'm not expert on Makefiles but it seems ok, what's wrong with this Makefile:</p>
  
  <pre><code>.PHONY: all test log debug clean cleanall
  
  ####### BUILD RULES #####################################################
  all:        cleanall
          make debug
          clean
          make test 
          clean
          make log
  
  log: CFLAGS := $(CFLAGS_LOG)
  
  clean:
      rm -f $(OBJS) 
  
  cleanall: clean
      rm -f   $(OUTPATH)$(APPNAME) \
          $(OUTPATH_DBG)$(APPNAME_DBG) \
          $(OUTPATH_DBG)$(APPNAME_LOG)
  
  test: $(OBJS)
      $(CXX) -static $(CFLAGS) -o $(OUTPATH)$(APPNAME) $(OBJS) $(LIB)
      strip $(OUTPATH)$(APPNAME)
  
  log: $(OBJS)
      $(CXX) -static $(CFLAGS_LOG) -o $(OUTPATH)$(APPNAME_LOG) $(OBJS) $(LIB)
      strip $(OUTPATH)$(APPNAME_LOG)
  
  debug: $(OBJS)
      $(CXX) $(CFLAGS_DBG) -o $(OUTPATH_DBG)$(APPNAME_DBG) $(OBJS) $(LIB)
  </code></pre>
  
  <p>keeps crashing whit error:</p>
  
  <pre><code>make[1]: Leaving directory '/blablabla/dcp_edi/test'
  clean
  make: clean: command not found
  Makefile:66: recipe for target 'all' failed
  </code></pre>
  
  <p>sorry but it really seems you can not post a question with too much code in it and i dunno what to write to make this post longer than this.</p>