title: makefile error "No rule to make target" how to solve it?
body: <p>what's wrong with my makefile?</p>
  
  <pre><code>CC = gcc
  OBJS = main.o map.o extended_map.o election.o utilities.o
  EXEC = election
  DEBUG_FLAG = -DNDEBUG
  COMP_FLAG = -std=c99 -Wall -pedantic-errors -Werror
  
  $(EXEC) : $(OBJS)
      $(CC) $(DEBUG_FLAG) $(OBJS) -o $@
  main.o: main.c map.h election.h test_utilities.h
      $(CC) -c $(DEBUG_FLAG) $(COMP_FLAG) $*.c
  map.o: map.c map.h utilities.h
      $(CC) -c $(DEBUG_FLAG) $(COMP_FLAG) $*.c
  extended_map.o: extended_map.c extended_map.h map.h utilities.h
      $(CC) -c $(DEBUG_FLAG) $(COMP_FLAG) $*.c
  election.o: election.c election.h map.h extended_map.h utilities.h
      $(CC) -c $(DEBUG_FLAG) $(COMP_FLAG) $*.c
  utilities.o: utilities.c utilities.h
      $(CC) -c $(DEBUG_FLAG) $(COMP_FLAG) $*.c
  clean:
      rm -f $(OBJS) $(EXEC)
  </code></pre>
  
  <p>I am running the following command on linux:</p>
  
  <pre><code>-bash-4.2$ ls
  election.c  extended_map.c  main.c  makefile  mtm_map           utilities.c
  election.h  extended_map.h  main.o  map.h     test_utilities.h  utilities.h
  -bash-4.2$ make
  make: *** No rule to make target `map.c', needed by `map.o'.  Stop.
  -bash-4.2$
  </code></pre>
  
  <p>map.c exists inside a folder named <code>mtm_map</code> inside the current folder</p>