title: make[1]: Command not found
body: <p>I am getting below error while building some set of files. Would someone give some pointers on why do I get this error? Am I missing installation of some package?</p>
  
  <p>Snippet of error log:</p>
  
  <pre><code>make[1]: MMD: Command not found
      CC         drivers/usb/usbhid.libc.o
  make[1]: MMD: Command not found
      CC         drivers/usb/usbmsc.libc.o
  make[1]: MMD: Command not found
      CC         drivers/hid.libc.o
  make[1]: MMD: Command not found
      AR         build/libc.a
  make[1]: invalidar: Command not found
  Makefile.inc:89: recipe for target 'build/libc.a' failed
  </code></pre>
  
  <p>Snippet of my makefile:</p>
  
  <pre><code># macro to define template macros that are used by use_template macro
  define create_cc_template
  # $1 obj class
  # $2 source suffix (c, S)
  # $3 additional compiler flags
  # $4 additional dependencies
  ifn$(EMPTY)def $(1)-objs_$(2)_template
  de$(EMPTY)fine $(1)-objs_$(2)_template
  $(obj)/$$(1).$(1).o: $$(1).$(2) $(obj)/libpayload-config.h $(4)
          @printf "    CC         $$$$(subst $$$$(obj)/,,$$$$(@))\n"
          $(CC) $(3) -MMD $$$$(CFLAGS) -c -o $$$$@ $$$$&lt;
  en$(EMPTY)def
  end$(EMPTY)if
  endef
  </code></pre>