libbacktrace: don't let "make clean" remove allocfail.sh

* Makefile.am (MAKETESTS): New variable split out of TESTS.
	(CLEANFILES): Replace TESTS with BUILDTESTS and MAKETESTS.
	* Makefile.in: Regenerate.

Fixes #81
This commit is contained in:
Ian Lance Taylor
2022-07-07 16:13:57 -07:00
parent b6ddb3aa1b
commit bc78542d20
2 changed files with 27 additions and 15 deletions

View File

@@ -86,13 +86,19 @@ libbacktrace_la_DEPENDENCIES = $(libbacktrace_la_LIBADD)
# Testsuite.
# Add a test to this variable if you want it to be built.
# Add a test to this variable if you want it to be built as a program,
# with SOURCES, etc.
check_PROGRAMS =
# Add a test to this variable if you want it to be run.
TESTS =
# Add a test to this variable if you want it to be built and run.
# Add a test to this variable if you want it to be built as a Makefile
# target and run.
MAKETESTS =
# Add a test to this variable if you want it to be built as a program,
# with SOURCES, etc., and run.
BUILDTESTS =
# Add a file to this variable if you want it to be built for testing.
@@ -251,7 +257,7 @@ b2test_LDFLAGS = -Wl,--build-id
b2test_LDADD = libbacktrace_elf_for_test.la
check_PROGRAMS += b2test
TESTS += b2test_buildid
MAKETESTS += b2test_buildid
if HAVE_DWZ
@@ -261,7 +267,7 @@ b3test_LDFLAGS = -Wl,--build-id
b3test_LDADD = libbacktrace_elf_for_test.la
check_PROGRAMS += b3test
TESTS += b3test_dwz_buildid
MAKETESTS += b3test_dwz_buildid
endif HAVE_DWZ
@@ -312,11 +318,11 @@ if HAVE_DWZ
cp $< $@; \
fi
TESTS += btest_dwz
MAKETESTS += btest_dwz
if HAVE_OBJCOPY_DEBUGLINK
TESTS += btest_dwz_gnudebuglink
MAKETESTS += btest_dwz_gnudebuglink
endif HAVE_OBJCOPY_DEBUGLINK
@@ -417,7 +423,7 @@ endif HAVE_PTHREAD
if HAVE_OBJCOPY_DEBUGLINK
TESTS += btest_gnudebuglink
MAKETESTS += btest_gnudebuglink
%_gnudebuglink: %
$(OBJCOPY) --only-keep-debug $< $@.debug
@@ -495,7 +501,7 @@ endif USE_DSYMUTIL
if HAVE_MINIDEBUG
TESTS += mtest_minidebug
MAKETESTS += mtest_minidebug
%_minidebug: %
$(NM) -D $< -P --defined-only | $(AWK) '{ print $$1 }' | sort > $<.dsyms
@@ -537,10 +543,11 @@ endif HAVE_ELF
check_PROGRAMS += $(BUILDTESTS)
TESTS += $(BUILDTESTS)
TESTS += $(MAKETESTS) $(BUILDTESTS)
CLEANFILES = \
$(TESTS) *.debug elf_for_test.c edtest2_build.c gen_edtest2_build \
$(MAKETESTS) $(BUILDTESTS) *.debug elf_for_test.c edtest2_build.c \
gen_edtest2_build \
*.dsyms *.fsyms *.keepsyms *.dbg *.mdbg *.mdbg.xz *.strip
clean-local: