fix clean
This commit is contained in:
parent
4f7847b2c0
commit
a406b64975
2
Makefile
2
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}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue