apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: cvs commit: apr-util configure.in Makefile.in
Date Fri, 31 Aug 2001 14:48:20 GMT
"William A. Rowe, Jr." <wrowe@rowe-clan.net> writes:

> Jeff,
>   this will become a problem on Win32 as well, and it's pretty fragile.
>   What if we institute a two-pass clean?  Don't eliminate any dependencies on the
> first go, and the distclean target can then mop up the obvious (.mk targets, generated
> .h files, etc.)  I think this would be safer, all the way around.  Trying to toggle
> build orders by model will just get messier and messier.

What I have implemented/tested was my second suggestion -- copy apr's
rules.mk into the apr-util tree at configuration time.  apr-util already
requires that apr was configured, so there is no additional

Since apr-util has its own copy of rules.mk, the includes in apr-util
makefiles still work regardless of the order of apr and apr-util in

Cool?  That is simpler than a two-pass clean, and avoids a wasted
second pass for certain operations (like normal make).

Here is the patch:

Index: srclib/apr-util/Makefile.in
RCS file: /home/cvspublic/apr-util/Makefile.in,v
retrieving revision 1.45
diff -u -r1.45 Makefile.in
--- srclib/apr-util/Makefile.in	2001/08/31 09:47:53	1.45
+++ srclib/apr-util/Makefile.in	2001/08/31 14:31:50
@@ -17,7 +17,8 @@
 DISTCLEAN_TARGETS = config.cache config.log config.status libtool \
 	include/private/apu_config.h include/private/apu_private.h \
-	include/private/apu_select_dbm.h include/apu.h export_vars.sh
+	include/private/apu_select_dbm.h include/apu.h export_vars.sh \
+	build/rules.mk
 EXTRACLEAN_TARGETS = configure aclocal.m4 include/private/apu_config.h.in
Index: srclib/apr-util/configure.in
RCS file: /home/cvspublic/apr-util/configure.in,v
retrieving revision 1.34
diff -u -r1.34 configure.in
--- srclib/apr-util/configure.in	2001/08/31 09:47:53	1.34
+++ srclib/apr-util/configure.in	2001/08/31 14:31:50
@@ -86,14 +86,26 @@
+dnl copy APR's build/rules.mk to our build directory; if we reference it
+dnl from the APR directory then our "make *clean" is dependent on APR
+dnl still being around
+if cp $top_builddir/../apr/build/rules.mk $top_builddir/build/rules.mk; then
+  :
+  echo "Fatal error: APR hasn't been configured yet"
+  exit 1
 dnl BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
 case "$host_alias" in
-    INCLUDE_RULES=".include \"$top_builddir/../apr/build/rules.mk\""
+    INCLUDE_RULES=".include \"$top_builddir/build/rules.mk\""
-    INCLUDE_RULES="include $top_builddir/../apr/build/rules.mk"
+    INCLUDE_RULES="include $top_builddir/build/rules.mk"

Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
             Born in Roswell... married an alien...

View raw message