fix clean

This commit is contained in:
Peter McGoron 2024-07-08 20:06:01 -04:00
parent 4f7847b2c0
commit a406b64975
2 changed files with 5 additions and 3 deletions

View File

@ -39,7 +39,7 @@ UNS_HASHTABLE_OBJS=examples/hashtable/uns_hashtable.o
EXAMPLE_OBJS=${UNS_STRING_OBJS} ${UNS_HASHTABLE_OBJS} EXAMPLE_OBJS=${UNS_STRING_OBJS} ${UNS_HASHTABLE_OBJS}
## Clean ## Clean
clean: clean: clean_tests
${RM} -f ${COMMON_OBJECTS} libuniversalservice.so \ ${RM} -f ${COMMON_OBJECTS} libuniversalservice.so \
${TEST_OBJS} ${COLLECTOR_OBJS} ${EXAMPLE_OBJS} ${TEST_OBJS} ${COLLECTOR_OBJS} ${EXAMPLE_OBJS}

View File

@ -55,11 +55,13 @@ gen_hashtable_test() {
} }
gen_tests() { 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_string_test "$1" '${CHENEY_C89_OBJS}'
gen_hashtable_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 "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"