From 1b1481b0a4dedf65b67fc9342812147230e3113e Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Sun, 6 Feb 2011 23:26:04 -0200 Subject: [PATCH] Add the regular objects as a dependency for the tests. * Also execute the 'test' rule silently --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8380cd0..4b9983d 100644 --- a/Makefile +++ b/Makefile @@ -35,9 +35,9 @@ TEST_OBJECTS = ${TEST_DIR}/frame_test.o \ ttysolitaire: ${LIB_OBJECTS} ${CC} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${EXECUTABLE} ${LIB_OBJECTS} -test: ${TEST_OBJECTS} - ${CC} ${CFLAGS} ${LDFLAGS} ${TEST_SRC} -o ${TEST_EXECUTABLE} ${TEST_OBJECTS} - ${TEST_EXECUTABLE} +test: ${LIB_OBJECTS} ${TEST_OBJECTS} + @${CC} ${CFLAGS} ${LDFLAGS} ${TEST_SRC} -o ${TEST_EXECUTABLE} ${TEST_OBJECTS} ${LIB_OBJECTS} 2> /dev/null + @${TEST_EXECUTABLE} clean: rm -rf {${LIB_DIR},${TEST_DIR}}/*.o ${EXECUTABLE} ${TEST_EXECUTABLE}