diff --git a/Makefile b/Makefile index 78d7e5b..7935619 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ UNS_HASHTABLE_OBJS=examples/hashtable/uns_hashtable.o EXAMPLE_OBJS=${UNS_STRING_OBJS} ${UNS_HASHTABLE_OBJS} ## Clean -clean: +clean: clean_tests ${RM} -f ${COMMON_OBJECTS} libuniversalservice.so \ ${TEST_OBJS} ${COLLECTOR_OBJS} ${EXAMPLE_OBJS} diff --git a/gen_tests.sh b/gen_tests.sh index 4980f27..bccad2c 100755 --- a/gen_tests.sh +++ b/gen_tests.sh @@ -55,11 +55,13 @@ gen_hashtable_test() { } gen_tests() { + echo "examples/test_$1.o: include/uns.h $2" + GENERATED_OBJS="$GENERATED_OBJS examples/test_$1.o" gen_string_test "$1" '${CHENEY_C89_OBJS}' gen_hashtable_test "$1" '${CHENEY_C89_OBJS}' } -gen_tests cheney_c89 +gen_tests cheney_c89 "include/cheney_c89.h" printf "tests: %s\n" "$TEST_TARGETS" -printf 'clean_tests: %s\n\t${RM} -f %s %s\n' "$TEST_TARGETS" "$GENERATED_OBJS" +printf 'clean_tests:\n\t${RM} -f %s %s\n' "$TEST_TARGETS" "$GENERATED_OBJS"