From 651e9bb4fdef2f6f4dbdb4f85bee071ef72bcd25 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Thu, 28 Oct 2010 16:25:51 -0700 Subject: [PATCH] Add MAINTAINERCLEANFILES to Makefile.am files. Ensures 'make maintainer-clean' removes files generated by autotools. Signed-off-by: Zachary T Welch --- Makefile.am | 15 +++++++++++++++ doc/Makefile.am | 2 ++ src/Makefile.am | 1 + tests/Makefile.am | 2 ++ 4 files changed, 20 insertions(+) diff --git a/Makefile.am b/Makefile.am index a7de2fb4..9484c972 100644 --- a/Makefile.am +++ b/Makefile.am @@ -65,3 +65,18 @@ EXTRA_DIST = include/dwarf.h include/dwarf_i.h include/dwarf-eh.h \ include/tdep-ppc64/jmpbuf.h include/tdep-ppc64/libunwind_i.h \ include/libunwind.h include/tdep/libunwind_i.h \ include/tdep/jmpbuf.h include/tdep/dwarf-config.h + +MAINTAINERCLEANFILES = \ + Makefile.in \ + INSTALL \ + aclocal.m4 \ + configure \ + config/compile \ + config/config.guess \ + config/config.sub \ + config/depcomp \ + config/install-sh \ + config/ltmain.sh \ + config/missing \ + include/config.h.in \ + include/config.h.in~ diff --git a/doc/Makefile.am b/doc/Makefile.am index b4145687..4730f9b7 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -67,3 +67,5 @@ pdf: page=`basename $$n .man`; \ $(L2P) $(srcdir)/$$page.tex "$$page(3).pdf"; \ done + +MAINTAINERCLEANFILES = Makefile.in diff --git a/src/Makefile.am b/src/Makefile.am index 3107b00f..59707777 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -520,6 +520,7 @@ EXTRA_DIST = elfxx.h elfxx.c unwind/unwind-internal.h \ $(libunwind_setjmp_la_SOURCES_ppc32) \ $(libunwind_setjmp_la_SOURCES_ppc64) +MAINTAINERCLEANFILES = Makefile.in # The -version-info flag accepts an argument of the form # `current[:revision[:age]]'. So, passing `-version-info 3:12:1' sets diff --git a/tests/Makefile.am b/tests/Makefile.am index 794f33fb..367d38cf 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -3,6 +3,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/include EXTRA_DIST = run-ia64-test-dyn1 run-ptrace-mapper run-ptrace-misc \ run-check-namespace check-namespace.sh.in Gtest-nomalloc.c +MAINTAINERCLEANFILES = Makefile.in + noinst_PROGRAMS_common = check_PROGRAMS_common = test-proc-info test-static-link \ test-strerror