title: Makefile : fclean gives error if program is not yet built
body: <p>I have 2 makefiles that crash when I use the command <code>make re</code> if the program (or library) is not yet previously built, because <code>make re</code> calls <code>fclean</code>, which should remove the file and crashes if the file is not found. Here is one of the makefiles for a library</p>
  
  <pre><code>NAME = lib.a
  
  CC = cc
  CFLAGS = -Wall -Wextra -Werror
  SRC = *.c
  
  OBJ = $(SRC:.c=.o)
  
  INC = Includes
  
  all: $(NAME)
  
  $(NAME):
      @$(CC) -I $(INC) $(CFLAGS) -c $? $(SRC)
      @ar rc $(NAME) $? $(OBJ)
      @ranlib $(NAME)
  
  clean:
      @/bin/rm -f $(OBJ)
  
  fclean: clean
      @/bin/rm $(NAME)
  
  re: fclean all
  
  .PHONY: all clean fclean re
  </code></pre>
  
  <p>when I call make re and lib.a still doesnt exist I get</p>
  
  <pre><code>rm: lib.a: No such file or directory
  make: *** [fclean] Error 1
  </code></pre>
  
  <p>Is there anyway to get it to just ignore the <code>fclean</code> command if <code>lib.a</code> is not found?</p>
  
  <p>thanks</p>