From 3ec2e3a23451a04c334ddb244d36b0dec6067560 Mon Sep 17 00:00:00 2001
From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Sat, 18 Jul 2009 14:18:51 +0000
Subject: [PATCH] Makefile.am: 'make maintainer-clean' now removes also files
 generated by './autogen.sh'.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2846 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 smartmontools/CHANGELOG                  |  3 +++
 smartmontools/Makefile.am                | 13 +++++++++++++
 smartmontools/examplescripts/Makefile.am |  6 ++++++
 3 files changed, 22 insertions(+)

diff --git a/smartmontools/CHANGELOG b/smartmontools/CHANGELOG
index 6903314ae..18e6b6f37 100644
--- a/smartmontools/CHANGELOG
+++ b/smartmontools/CHANGELOG
@@ -42,6 +42,9 @@ NOTES FOR FUTURE RELEASES: see TODO file.
 
 <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
 
+  [CF] Makefile.am: 'make maintainer-clean' now removes also files
+       generated by './autogen.sh'.
+
   [CF] Invalidate 'do_release' script, it needs some rework for SVN.
 
   [CF] Update documentation files for SVN.
diff --git a/smartmontools/Makefile.am b/smartmontools/Makefile.am
index edf486f43..7d5221cd6 100644
--- a/smartmontools/Makefile.am
+++ b/smartmontools/Makefile.am
@@ -262,6 +262,19 @@ if SMARTD_SUFFIX
 CLEANFILES += smartd.conf$(smartd_suffix)
 endif
 
+# 'make maintainer-clean' also removes files generated by './autogen.sh'
+MAINTAINERCLEANFILES = \
+        $(srcdir)/Makefile.in \
+        $(srcdir)/aclocal.m4 \
+        $(srcdir)/configure \
+        $(srcdir)/config.guess \
+        $(srcdir)/config.h.in \
+        $(srcdir)/config.sub \
+        $(srcdir)/depcomp \
+        $(srcdir)/install-sh \
+        $(srcdir)/missing \
+        $(srcdir)/mkinstalldirs
+
 utility.o: svnversion.h
 
 if IS_SVN_BUILD
diff --git a/smartmontools/examplescripts/Makefile.am b/smartmontools/examplescripts/Makefile.am
index 2d1d187b5..cc0a33478 100644
--- a/smartmontools/examplescripts/Makefile.am
+++ b/smartmontools/examplescripts/Makefile.am
@@ -1,4 +1,8 @@
 ## Process this file with automake to produce Makefile.in
+#
+# $Id$
+#
+
 examplesdir=$(exampledir)
 
 examples_DATA = README
@@ -9,3 +13,5 @@ examples_SCRIPTS = Example1     \
                    Example4
 
 EXTRA_DIST = $(examples_SCRIPTS)
+
+MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
-- 
GitLab