-./cunit_unit.c: xbt/cunit.c
- @top_srcdir@/tools/sg_unit_extractor.pl $^
-./ex_unit.c: xbt/ex.c
- @top_srcdir@/tools/sg_unit_extractor.pl $^
-./xbt_str_unit.c: xbt/xbt_str.c
- @top_srcdir@/tools/sg_unit_extractor.pl $^
-./dynar_unit.c: xbt/dynar.c
- @top_srcdir@/tools/sg_unit_extractor.pl $^
-./dict_unit.c: xbt/dict.c
- @top_srcdir@/tools/sg_unit_extractor.pl $^
-./set_unit.c: xbt/set.c
- @top_srcdir@/tools/sg_unit_extractor.pl $^
-./swag_unit.c: xbt/swag.c
- @top_srcdir@/tools/sg_unit_extractor.pl $^
-./config_unit.c: xbt/config.c
+CLEANFILES=$(TEST_UNITS)
+
+$(TEST_UNITS): xbt/cunit.c xbt/ex.c xbt/xbt_str.c xbt/xbt_strbuff.c xbt/xbt_sha.c\
+ xbt/dynar.c xbt/dict.c xbt/set.c xbt/swag.c xbt/config.c