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}