From 2160f065cad340fc94056c6a9e9477e00fce51af Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 23 Jul 2014 23:31:02 -0700 Subject: [PATCH] Fix distclean on BSD --- test-suite/Makefile.am | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test-suite/Makefile.am b/test-suite/Makefile.am index 5a6a3d5ef6..b20bf6f4a4 100644 --- a/test-suite/Makefile.am +++ b/test-suite/Makefile.am @@ -52,8 +52,9 @@ check_PROGRAMS += debug \ tcp_banger2_LDADD = $(top_builddir)/lib/libmiscutil.la - -DEBUG_SOURCE = test_tools.cc stub_debug.cc stub_SBuf.cc stub_tools.cc stub_fatal.cc +STUBS = stub_debug.cc stub_SBuf.cc stub_tools.cc stub_fatal.cc +DEBUG_SOURCE = test_tools.cc $(STUBS) +CLEANFILES += $(STUBS) stub_debug.cc: $(top_srcdir)/src/tests/stub_debug.cc cp $(top_srcdir)/src/tests/stub_debug.cc . @@ -67,8 +68,6 @@ stub_tools.cc: $(top_srcdir)/src/tests/stub_tools.cc stub_fatal.cc: $(top_srcdir)/src/tests/stub_fatal.cc cp $(top_srcdir)/src/tests/stub_fatal.cc . -CLEANFILES += stub_debug.cc stub_tools.cc stub_fatal.cc - ## XXX: somewhat broken. Its meant to test our debugs() implementation. ## but it has never been linked to the actual src/debug.cc implementation !! ## all it tests are the stream operators and macro in src/Debug.h -- 2.47.3