[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Automatic rebuilding of build files

From: Nicolás Lichtmaier <nick_at_panoptico.reloco.com.ar>
Date: 2005-05-01 18:12:58 CEST

I have been using this for a long time. Perhaps you could consider
commiting this into Subversion itself...

Automatic recreation of build files.

* Makefile.in, configure.in:
  I've added some rules to provoke the automatic remaking when
  the requisite files change. In this way people can just type
  'svn up && make'.

Index: Makefile.in
===================================================================
--- Makefile.in (revisión: 14535)
+++ Makefile.in (copia de trabajo)
@@ -575,6 +575,28 @@
           $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$inst; \
         done
 
+$(srcdir)/configure: $(srcdir)/configure.in
+ cd $(srcdir) && autoconf
+
+# autoheader might not change svn_private_config.h.in, so touch a stamp file.
+$(srcdir)/subversion/svn_private_config.h.in: $(srcdir)/stamp-h.in
+$(srcdir)/stamp-h.in: configure.in
+ cd $(srcdir) && autoheader
+ echo timestamp > $(srcdir)/stamp-h.in
+
+subversion/svn_private_config.h: stamp-h
+stamp-h: subversion/svn_private_config.h.in config.status
+ ./config.status
+
+Makefile: Makefile.in config.status
+ ./config.status
+
+config.status: $(srcdir)/configure $(srcdir)/stamp-h.in
+ ./config.status --recheck
+
+build-outputs.mk: build.conf
+ ./gen-make.py build.conf
+
 install-swig-py: install-swig-py-lib
 install-swig-rb: install-swig-rb-lib
 
Index: configure.in
===================================================================
--- configure.in (revisión: 14535)
+++ configure.in (copia de trabajo)
@@ -750,6 +750,7 @@
 
 AC_CONFIG_HEADER(subversion/svn_private_config.h)
 AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h])
 AC_CONFIG_COMMANDS(mkdir-init, [make mkdir-init])
 
 SVN_CONFIG_SCRIPT(svn-config)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 1 18:17:38 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.