title: run executable from makefile 2
body: <p>What should I do for my makefile to not only build and compile "test" but actually run it when typing "make test" in terminal, so I wouldn't have to do ./test every time? </p>
  
  <pre><code>LDFLAGS = -lm -L. -lhashi
  CFLAGS = -g -Wall -std=c99
  SRC=$(wildcard *.c)
  OBJETS = $(SRC:.c=.o)
  
  all : prog1 prog2 test
  
  ...
  
  test : test_game1.o test_toolbox.o libhashi.a
  $(CC) $^ $(LDFLAGS) -o $@
  
  
  test_game1.o : test_game1.c game.h node.h test_toolbox.h test_game_eliott.c test_game_flo.c test_game_iana.c test_game_remi.c
  
  test_toolbox.o : test_toolbox.c test_toolbox.h
  
  clean :
  rm -f  ... test_game1.o test_toolbox.o test ...
  </code></pre>