test: Simplify CLEAN list construction
authorAustin Clements <amdragon@MIT.EDU>
Tue, 25 Feb 2014 19:18:59 +0000 (14:18 -0500)
committerDavid Bremner <david@tethera.net>
Wed, 26 Feb 2014 00:53:54 +0000 (20:53 -0400)
Construct as much of the CLEAN list from TEST_BINARIES as possible,
rather than duplicating this information by hand.

test/Makefile.local

index 8870ca374848add291a0ad969d038baab5448794..99324ba1e75b790cdc298337b8b6a51c35649ce0 100644 (file)
@@ -50,11 +50,6 @@ test:        all test-binaries
 check: test
 
 SRCS := $(SRCS) $(smtp_dummy_srcs)
-CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o \
-        $(dir)/symbol-test $(dir)/symbol-test.o \
-        $(dir)/arg-test $(dir)/arg-test.o \
-        $(dir)/hex-xcode $(dir)/hex-xcode.o \
+CLEAN += $(TEST_BINARIES) $(addsuffix .o,$(TEST_BINARIES)) \
         $(dir)/database-test.o \
-        $(dir)/random-corpus $(dir)/random-corpus.o \
-        $(dir)/parse-time $(dir)/parse-time.o \
         $(dir)/corpus.mail $(dir)/test-results $(dir)/tmp.*