]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Cleanup Makefile.am CLEANFILES definitions
authorMark Wielaard <mark@klomp.org>
Mon, 18 Nov 2024 18:02:52 +0000 (19:02 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 18 Nov 2024 18:10:46 +0000 (19:10 +0100)
Since b2f225d6bff8 ("Consolidate and add files to clean target variables")
autoreconf (automake) produces these warnings:

debuginfod/Makefile.am:130: warning: CLEANFILES multiply defined in condition TRUE ...
config/eu.am:138: ... 'CLEANFILES' previously defined here
debuginfod/Makefile.am:32:   'config/eu.am' included from here
libasm/Makefile.am:91: warning: CLEANFILES multiply defined in condition TRUE ...
config/eu.am:138: ... 'CLEANFILES' previously defined here
libasm/Makefile.am:30:   'config/eu.am' included from here
libcpu/Makefile.am:105: warning: CLEANFILES multiply defined in condition TRUE ...
config/eu.am:138: ... 'CLEANFILES' previously defined here
libcpu/Makefile.am:30:   'config/eu.am' included from here
libdw/Makefile.am:156: warning: CLEANFILES multiply defined in condition TRUE ...
config/eu.am:138: ... 'CLEANFILES' previously defined here
libdw/Makefile.am:30:   'config/eu.am' included from here
libelf/Makefile.am:142: warning: CLEANFILES multiply defined in condition TRUE ...
config/eu.am:138: ... 'CLEANFILES' previously defined here
libelf/Makefile.am:30:   'config/eu.am' included from here
src/Makefile.am:47: warning: CLEANFILES multiply defined in condition TRUE ...
config/eu.am:138: ... 'CLEANFILES' previously defined here
src/Makefile.am:19:   'config/eu.am' included from here
tests/Makefile.am:891: warning: CLEANFILES multiply defined in condition TRUE ...
config/eu.am:138: ... 'CLEANFILES' previously defined here
tests/Makefile.am:19:   'config/eu.am' included from here

This is because config/eu.am defines a default CLEANFILES. So those
Makefile.am files should add to CLEANFILES with += instead of
redefining CLEANFILES with =.

   * debuginfod/Makefile.am (CLEANFILES): Use +=.
   * libasm/Makefile.am (CLEANFILES): Likewise.
   * libcpu/Makefile.am (CLEANFILES): Likewise.
   * libdw/Makefile.am (CLEANFILES): Likewise.
   * libelf/Makefile.am (CLEANFILES): Likewise.
   * src/Makefile.am (CLEANFILES): Likewise.
   * tests/Makefile.am (CLEANFILES): Likewise.

Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/Makefile.am
libasm/Makefile.am
libcpu/Makefile.am
libdw/Makefile.am
libelf/Makefile.am
src/Makefile.am
tests/Makefile.am

index 45b5339f488c4f8aec9e3f9181db260ded933983..1c35ae77c9969fc33b84269e495e43dc226bc60e 100644 (file)
@@ -127,7 +127,7 @@ endif
 EXTRA_DIST = libdebuginfod.map
 
 MOSTLYCLEANFILES = $(am_libdebuginfod_a_OBJECTS) $(am_libdebuginfod_pic_a_OBJECTS) $(LIBDEBUGINFOD_SONAME)
-CLEANFILES = libdebuginfod.so
+CLEANFILES += libdebuginfod.so
 
 # automake std-options override: arrange to pass LD_LIBRARY_PATH
 installcheck-binPROGRAMS: $(bin_PROGRAMS)
index 324fd095a7837c4f744c10daa2448dd73b8bebdf..89650e67557027499f3cb434d62c12bdb52b7cc3 100644 (file)
@@ -88,4 +88,4 @@ noinst_HEADERS = libasmP.h symbolhash.h
 EXTRA_DIST = libasm.map
 
 MOSTLYCLEANFILES = $(am_libasm_a_OBJECTS) $(am_libasm_pic_a_OBJECTS) libasm.so.$(VERSION)
-CLEANFILES = libasm.so
+CLEANFILES += libasm.so
index 3283523781c029cbcacc7263a45949dd22979e7e..c70b988f7e488263e5ebbfb27c43f4d7c3dbecdb 100644 (file)
@@ -102,5 +102,5 @@ bpf_disasm_CFLAGS = -Wno-format-nonliteral
 EXTRA_DIST = defs/i386
 
 MOSTLYCLEANFILES = $(am_libcpu_a_OBJECTS) $(am_libcpu_pic_a_OBJECTS) $(i386_gendis_OBJECTS)
-CLEANFILES = $(foreach P,i386 x86_64,$P_defs $P.mnemonics)
+CLEANFILES += $(foreach P,i386 x86_64,$P_defs $P.mnemonics)
 MAINTAINERCLEANFILES = $(foreach P,i386 x86_64, $P_defs $P_dis.h $P_parse.h)
index 62f4359e4c0969644377de01709d31929f341a83..42b18ce23e85dafb884faa1e2b8787f5749e09c7 100644 (file)
@@ -153,5 +153,5 @@ noinst_HEADERS = libdwP.h memory-access.h dwarf_abbrev_hash.h \
 EXTRA_DIST = libdw.map
 
 MOSTLYCLEANFILES = $(am_libdw_a_OBJECTS) $(am_libdw_pic_a_OBJECTS) libdw.so.$(VERSION)
-CLEANFILES = libdw.so
+CLEANFILES += libdw.so
 MAINTAINERCLEANFILES = $(srcdir)/known-dwarf.h
index e91bcd6e9ba1733d615e7c6affc06540f7017815..603f797a3aa25f965ee08050be715b79b6e8e62d 100644 (file)
@@ -139,4 +139,4 @@ uninstall: uninstall-am
 EXTRA_DIST = libelf.map
 
 MOSTLYCLEANFILES = $(am_libelf_a_OBJECTS) $(am_libelf_pic_a_OBJECTS) libelf.so.$(VERSION)
-CLEANFILES = libelf.so
+CLEANFILES += libelf.so
index 97a0c61aac59874ea4fe39848fe72dcef0b56248..4221d54e4e770e4b6f498c7793ef9e6f46a3da53 100644 (file)
@@ -44,7 +44,7 @@ bin_SCRIPTS = make-debug-archive
 EXTRA_DIST = arlib.h debugpred.h make-debug-archive.in
 
 MOSTLYCLEANFILES = *.gconv
-CLEANFILES = $(bin_SCRIPTS)
+CLEANFILES += $(bin_SCRIPTS)
 
 if BUILD_STATIC
 libasm = ../libasm/libasm.a
index 44cbb8258e7047f285d01e8ebe426bbc7ff1813d..eed71df0b65ab9b7187021bc8bfd715bbd2f7e52 100644 (file)
@@ -888,7 +888,7 @@ system_elf_gelf_test_LDADD = $(libelf)
 
 # A lock file used to make sure only one test dumps core at a time
 MOSTLYCLEANFILES = core-dump-backtrace.lock
-CLEANFILES = $(BUILT_SOURCES)
+CLEANFILES += $(BUILT_SOURCES)
 
 if GCOV
 check: check-am coverage