]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
make: clean tests better (tunits)
authorViktor Szakats <commit@vsz.me>
Mon, 14 Apr 2025 21:44:57 +0000 (23:44 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 14 Apr 2025 23:20:23 +0000 (01:20 +0200)
Sync clean target with other test bundles.

Follow-up to d3761bb84013ffd356753f943d687283afe203b5 #16986
Closes #17053

tests/tunit/Makefile.am

index d910daa8d872b81b73874040df943f835ddf6f67..0a09a850a2d3fb223d7e3f6c10ac15ace048c588 100644 (file)
@@ -59,12 +59,14 @@ if CURLDEBUG
 AM_CPPFLAGS += -DCURLDEBUG
 endif
 
+BUNDLE=tunits
+
 if BUILD_UNITTESTS
 if USE_TEST_BUNDLES
 tool_bundle.c: $(top_srcdir)/tests/mk-bundle.pl Makefile.inc
        @PERL@ $(top_srcdir)/tests/mk-bundle.pl $(srcdir) > tool_bundle.c
 
-noinst_PROGRAMS = tunits
+noinst_PROGRAMS = $(BUNDLE)
 nodist_tunits_SOURCES = tool_bundle.c
 CLEANFILES = tool_bundle.c
 else
@@ -86,3 +88,6 @@ checksrc:
        $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) \
          -W$(srcdir)/tool_bundle.c \
          $(srcdir)/*.[ch])
+
+clean-local:
+       rm -f $(BUNDLE)