Hello,
On Mon, Mar 19, 2007 at 10:00:05AM -0700, Bruce Korb wrote:
> [...], as long as "maintainer-clean" semantics do not change. [...]
OK, then I'd like to suggest the following patch against the autogen
project.
Basically, it removes Makefile.in from MAINTAINERCLENFILES in all
Makefile.am's.
In the top-level Makefile.am, it removes all files in
MAINTAINERCLENFILES, as I suspect they are all pre-requisites of
configure.
GCS says that maintainer-clean may not remove configure nor files
needed for its run.
If you remove aclocal.m4 and then run "./configure;make", then the
make rebuilds and re-runs configure. Thus I believe aclocal.m4
should not be removed by maintainer-clean either.
Similarly for other files.
I apologize, but the patch is just a quick sketch, please review it
carefully. (I do not understand the autogen project, sorry.)
If my suggestion is questionable, we should perhaps return to the
Automake list to seek for clarification.
Have a nice day,
Stepan
2007-03-19 Stepan Kasal <[EMAIL PROTECTED]>
* Makefile.am (MAINTAINERCLEANFILES): Remove files generated by
autotools.
* snprintfv/Makefile.am:
* doc/Makefile.am:
* getdefs/test/Makefile.am:
* getdefs/Makefile.am:
* pkg/Makefile.am:
* columns/Makefile.am:
* agen5/test/Makefile.am:
* agen5/Makefile.am (MAINTAINERCLEANFILES): Remove Makefile.in
Index: Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/Makefile.am,v
retrieving revision 4.6
diff -u -r4.6 Makefile.am
--- Makefile.am 4 Feb 2007 22:17:39 -0000 4.6
+++ Makefile.am 19 Mar 2007 17:19:39 -0000
@@ -38,8 +38,6 @@
dist_data = $(pkgdata_DATA) $(aclocal_DATA)
EXTRA_DIST = VERSION NOTES $(config_dist) $(pkg_dist) $(dist_data)
DISTCLEANFILES = stamp-h
-MAINTAINERCLEANFILES = COPYING INSTALL Makefile.in aclocal.m4 config-h.in \
- configure libtool stamp-h.in config/ag_macros.m4
distcleancheck_listfiles = \
find -type f -exec 'test -f $(srcdir)/{} || echo {} ;'
Index: agen5/Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/agen5/Makefile.am,v
retrieving revision 4.10
diff -u -r4.10 Makefile.am
--- agen5/Makefile.am 4 Feb 2007 17:44:12 -0000 4.10
+++ agen5/Makefile.am 19 Mar 2007 17:19:39 -0000
@@ -23,7 +23,7 @@
nodist_man_MANS = autogen.1
DISTCLEANFILES = $(STAMPS) ag.c
-MAINTAINERCLEANFILES = Makefile.in $(GEN_CSRC)
+MAINTAINERCLEANFILES = $(GEN_CSRC)
bin_PROGRAMS = autogen
Index: agen5/test/Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/agen5/test/Makefile.am,v
retrieving revision 4.11
diff -u -r4.11 Makefile.am
--- agen5/test/Makefile.am 22 Aug 2006 16:09:02 -0000 4.11
+++ agen5/test/Makefile.am 19 Mar 2007 17:19:40 -0000
@@ -24,7 +24,6 @@
stress.test string.test strtable.test
UNREADY_TESTS = daemon.test
-MAINTAINERCLEANFILES = Makefile.in
TESTS = @AGEN5_TESTS@
EXTRA_DIST = $(TESTS) daemon.test
Index: autoopts/Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/autoopts/Makefile.am,v
retrieving revision 4.22
diff -u -r4.22 Makefile.am
--- autoopts/Makefile.am 4 Feb 2007 17:44:12 -0000 4.22
+++ autoopts/Makefile.am 19 Mar 2007 17:19:40 -0000
@@ -71,7 +71,7 @@
CLEANFILES = tmp-* libopts.c
DISTCLEANFILES = $(GENMAN) $(GENTEXI) $(STAMP_FILES)
-MAINTAINERCLEANFILES = Makefile.in $(GENHDRS) $(srcdir)/funcs.def
+MAINTAINERCLEANFILES = $(GENHDRS) $(srcdir)/funcs.def
m4datadir = $(datadir)/aclocal
nodist_libopts_la_SOURCES = libopts.c
Index: autoopts/test/Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/autoopts/test/Makefile.am,v
retrieving revision 4.12
diff -u -r4.12 Makefile.am
--- autoopts/test/Makefile.am 20 Nov 2006 00:22:49 -0000 4.12
+++ autoopts/test/Makefile.am 19 Mar 2007 17:19:40 -0000
@@ -12,7 +12,6 @@
## ---------------------------------------------------------------------
EXTRA_DIST = defs.in stdopts.def $(TESTS)
-MAINTAINERCLEANFILES = Makefile.in
TESTS = nested.test \
argument.test cond.test config.test enums.test equiv.test \
errors.test getopt.test guile.test handler.test immediate.test \
Index: columns/Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/columns/Makefile.am,v
retrieving revision 4.11
diff -u -r4.11 Makefile.am
--- columns/Makefile.am 4 Feb 2007 17:44:12 -0000 4.11
+++ columns/Makefile.am 19 Mar 2007 17:19:40 -0000
@@ -28,7 +28,7 @@
INCLUDES = @INCLIST@
CONFIG_CLEAN_FILES = columns.texi columns.menu columns.1 gen-stamp
-MAINTAINERCLEANFILES = Makefile.in $(CONFIG_CLEAN_FILES)
+MAINTAINERCLEANFILES = $(CONFIG_CLEAN_FILES)
DISTCLEANFILES = cols.c
gen : $(BUILT_SOURCES)
Index: compat/Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/compat/Makefile.am,v
retrieving revision 4.9
diff -u -r4.9 Makefile.am
--- compat/Makefile.am 4 Feb 2007 17:44:12 -0000 4.9
+++ compat/Makefile.am 19 Mar 2007 17:19:40 -0000
@@ -17,7 +17,7 @@
COMPAT_GEN = bootstrap.dir strsignal.def strsignal.tpl
EXTRA_DIST = $(COMPAT_CSRC) $(COMPAT_HDRS) $(COMPAT_GEN)
-MAINTAINERCLEANFILES = Makefile.in strsignal.h
+MAINTAINERCLEANFILES = strsignal.h
all:
:
Index: getdefs/Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/getdefs/Makefile.am,v
retrieving revision 4.10
diff -u -r4.10 Makefile.am
--- getdefs/Makefile.am 4 Feb 2007 17:44:12 -0000 4.10
+++ getdefs/Makefile.am 19 Mar 2007 17:19:40 -0000
@@ -28,7 +28,6 @@
getdefs_LDADD = $(top_builddir)/autoopts/libopts.la
man_MANS = $(TARG).1
DOCFILES = $(TARG).texi $(TARG).menu $(TARG).1
-MAINTAINERCLEANFILES = Makefile.in
DISTCLEANFILES = $(DOCFILES) $(nodist_getdefs_SOURCES) *-stamp
INCLUDES = @INCLIST@
AG_ENV = top_builddir=$(top_builddir) \
Index: getdefs/test/Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/getdefs/test/Makefile.am,v
retrieving revision 4.3
diff -u -r4.3 Makefile.am
--- getdefs/test/Makefile.am 24 Sep 2006 02:59:00 -0000 4.3
+++ getdefs/test/Makefile.am 19 Mar 2007 17:19:40 -0000
@@ -13,8 +13,6 @@
TESTS = cfg.test index.test option.test subblock.test
EXTRA_DIST = defs $(TESTS)
-MAINTAINERCLEANFILES = Makefile.in
-
testsubdir = ./testdir
TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \
Index: snprintfv/Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/snprintfv/Makefile.am,v
retrieving revision 4.5
diff -u -r4.5 Makefile.am
--- snprintfv/Makefile.am 27 Jan 2007 16:43:50 -0000 4.5
+++ snprintfv/Makefile.am 19 Mar 2007 17:19:40 -0000
@@ -26,7 +26,6 @@
## Code:
-MAINTAINERCLEANFILES = Makefile.in
INCLUDES = -I$(top_srcdir)
noinst_HEADERS = mem.h filament.h stream.h printf.h compat.h
dist_noinst_DATA = filament.stamp stream.stamp printf.stamp
Index: xml2ag/Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/xml2ag/Makefile.am,v
retrieving revision 4.9
diff -u -r4.9 Makefile.am
--- xml2ag/Makefile.am 4 Feb 2007 17:44:12 -0000 4.9
+++ xml2ag/Makefile.am 19 Mar 2007 17:19:40 -0000
@@ -23,7 +23,6 @@
xml2ag_LDADD = $(top_builddir)/autoopts/libopts.la $(LIBXML2_LIBS)
man_MANS = $(TARG).1
DOCFILES = $(TARG).texi $(TARG).menu $(TARG).1
-MAINTAINERCLEANFILES = Makefile.in
DISTCLEANFILES = $(DOCFILES) $(nodist_xml2ag_SOURCES) *-stamp
INCLUDES = @INCLIST@ $(LIBXML2_CFLAGS)
AG_ENV = top_builddir=$(top_builddir) \
Index: xml2ag/test/Makefile.am
===================================================================
RCS file: /cvsroot/autogen/autogen/xml2ag/test/Makefile.am,v
retrieving revision 4.6
diff -u -r4.6 Makefile.am
--- xml2ag/test/Makefile.am 24 Sep 2006 02:59:00 -0000 4.6
+++ xml2ag/test/Makefile.am 19 Mar 2007 17:19:40 -0000
@@ -15,8 +15,6 @@
TESTS = convert.test
EXTRA_DIST = $(TESTS)
-MAINTAINERCLEANFILES = Makefile.in
-
TESTS_ENVIRONMENT = \
X2Aexe=`\cd $(top_builddir)/xml2ag ; pwd`/xml2ag$(EXEEXT) \
srcdir=$(srcdir) top_srcdir=$(top_srcdir)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users