apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r383913 - in /apr/apr/branches/0.9.x: CHANGES Makefile.in build/apr_rules.mk.in
Date Tue, 07 Mar 2006 15:51:47 GMT
Author: maxb
Date: Tue Mar  7 07:51:46 2006
New Revision: 383913

URL: http://svn.apache.org/viewcvs?rev=383913&view=rev
Log:
Backport r65212, r65249, r65250, r65251 from trunk to 0.9.x.
Install mkdir.sh, make_exports.awk, make_var_export.awk to the APR
installbuilddir, and provide working accessor variables in apr_rules.mk.

* Makefile.in (CLEAN_TARGETS): Add "build/apr_rules.out".
  (build/apr_rules.out): New rule to create by changing build-dir paths to
    installed paths.
  (install): Depend on build/apr_rules.out, and install it as apr_rules.mk.
    Also install mkdir.sh, make_exports.awk and make_var_export.awk.
  (exports.c, export_vars.c): Use new make-variable defined in apr_rules.mk.

* build/apr_rules.mk.in (MKEXPORT): Remove obsolete definition which is broken
    anyway, since it refers to a nonexistant file.
  (APR_MKDIR, APR_MKEXPORT, APR_MKVAREXPORT): New definitions
    - the commands to run various installbuilddir tools.

* CHANGES: Update.

Modified:
    apr/apr/branches/0.9.x/CHANGES
    apr/apr/branches/0.9.x/Makefile.in
    apr/apr/branches/0.9.x/build/apr_rules.mk.in

Modified: apr/apr/branches/0.9.x/CHANGES
URL: http://svn.apache.org/viewcvs/apr/apr/branches/0.9.x/CHANGES?rev=383913&r1=383912&r2=383913&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/CHANGES (original)
+++ apr/apr/branches/0.9.x/CHANGES Tue Mar  7 07:51:46 2006
@@ -1,5 +1,10 @@
 Changes with APR 0.9.9
 
+  *) Install mkdir.sh, make_exports.awk, make_var_export.awk to the APR
+     installbuilddir, and provide working accessor variables in
+     apr_rules.mk.
+     [Max Bowsher]
+
   *) Fix seeks with files opened in xthread mode for append on win32.
      [M Joonas Pihlaja <jpihlaja cc.helsinki.fi>, Garrett Rooney]
 

Modified: apr/apr/branches/0.9.x/Makefile.in
URL: http://svn.apache.org/viewcvs/apr/apr/branches/0.9.x/Makefile.in?rev=383913&r1=383912&r2=383913&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/Makefile.in (original)
+++ apr/apr/branches/0.9.x/Makefile.in Tue Mar  7 07:51:46 2006
@@ -31,7 +31,8 @@
 # bring in rules.mk for standard functionality
 @INCLUDE_RULES@
 
-CLEAN_TARGETS = apr.exp exports.c export_vars.c apr-config.out
+CLEAN_TARGETS = apr.exp exports.c export_vars.c apr-config.out \
+	build/apr_rules.out
 DISTCLEAN_TARGETS = config.cache config.log config.status \
 	include/apr.h include/arch/unix/apr_private.h \
 	libtool apr-config
@@ -64,7 +65,11 @@
 apr-config.out: apr-config
 	sed 's,^\(location=\).*$$,\1installed,' < apr-config > $@
 
-install: $(TARGET_LIB) apr-config.out
+# Create apr_rules.mk suitable for the install tree
+build/apr_rules.out: build/apr_rules.mk
+	sed 's,^\(apr_build.*=\).*$$,\1$(installbuilddir),' < build/apr_rules.mk > $@
+
+install: $(TARGET_LIB) apr-config.out build/apr_rules.out
 	if [ ! -d $(DESTDIR)$(includedir) ]; then \
 	    $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(includedir); \
 	fi;
@@ -87,10 +92,10 @@
 	if [ -f shlibtool ]; then \
 		$(LIBTOOL) --mode=install cp shlibtool $(DESTDIR)$(installbuilddir); \
 	fi;
-	if [ -f build/apr_rules.mk ]; then \
-		cp build/apr_rules.mk $(DESTDIR)$(installbuilddir); \
-	fi;
-
+	for f in mkdir.sh make_exports.awk make_var_export.awk; do \
+	        cp $(top_srcdir)/build/$${f} $(DESTDIR)$(installbuilddir); \
+	done
+	cp build/apr_rules.out $(DESTDIR)$(installbuilddir)/apr_rules.mk
 	if [ ! -d $(DESTDIR)$(bindir) ]; then \
 	    $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(bindir); \
 	fi;
@@ -119,10 +124,10 @@
 	fi
 
 exports.c:
-	$(AWK) -f $(top_srcdir)/build/make_exports.awk $(EXPORT_FILES) > $@
+	$(APR_MKEXPORT) $(EXPORT_FILES) > $@
 
 export_vars.c:
-	$(AWK) -f $(top_srcdir)/build/make_var_export.awk $(EXPORT_FILES) > $@
+	$(APR_MKVAREXPORT) $(EXPORT_FILES) > $@
 
 apr.exp: exports.c export_vars.c
 	@echo "#! lib@APR_LIBNAME@.so" > $@

Modified: apr/apr/branches/0.9.x/build/apr_rules.mk.in
URL: http://svn.apache.org/viewcvs/apr/apr/branches/0.9.x/build/apr_rules.mk.in?rev=383913&r1=383912&r2=383913&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/build/apr_rules.mk.in (original)
+++ apr/apr/branches/0.9.x/build/apr_rules.mk.in Tue Mar  7 07:51:46 2006
@@ -86,8 +86,10 @@
 
 LINK         = @link@
 
-MKEXPORT     = $(AWK) -f $(apr_builders)/make_export.awk
-MKDEP        = @MKDEP@
+APR_MKDIR        = $(apr_builders)/mkdir.sh
+APR_MKEXPORT     = $(AWK) -f $(apr_builders)/make_exports.awk
+APR_MKVAREXPORT  = $(AWK) -f $(apr_builders)/make_var_export.awk
+MKDEP            = @MKDEP@
 
 #
 # Standard build rules



Mime
View raw message