summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-09-01 09:53:50 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-09-01 09:53:50 +0000
commit9753ae81ff3ee349f7b08942b9a3602143cf2c7a (patch)
treeffb596f8c9efb3e9cd12cbb6a6185f61ffcb1a78 /Makefile.in
parent32b8ed22acba06ab4f0bf62ebe07d14967fe626c (diff)
downloadlibapr-9753ae81ff3ee349f7b08942b9a3602143cf2c7a.tar.gz
Backport from HEAD:
Remove "location detection" from apr-config: * configure.in: Substitute APR_CONFIG_LOCATION as "build" or "source" appropriately. * apr-config.in: Set location to @APR_CONFIG_LOCATION@ rather than fragile pwd/realpath guesswork; pick up and use APR_BUILD_DIR instead of $thisdir. * Makefile.in (apr-config.out): New target. (install): Install apr-config.out instead of apr-config. PR: 8867 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65319 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index a0681786a..bca963442 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -31,7 +31,7 @@ TARGETS = delete-lib $(TARGET_LIB) delete-exports export_vars.c apr.exp
# bring in rules.mk for standard functionality
@INCLUDE_RULES@
-CLEAN_TARGETS = apr.exp exports.c export_vars.c
+CLEAN_TARGETS = apr.exp exports.c export_vars.c apr-config.out
DISTCLEAN_TARGETS = config.cache config.log config.status \
include/apr.h include/arch/unix/apr_private.h \
libtool apr-config
@@ -60,7 +60,11 @@ delete-lib:
fi \
fi
-install: $(TARGET_LIB)
+# Create apr-config script suitable for the install tree
+apr-config.out: apr-config
+ sed 's,^\(location=\).*$$,\1installed,' < apr-config > $@
+
+install: $(TARGET_LIB) apr-config.out
if [ ! -d $(DESTDIR)$(includedir) ]; then \
$(top_srcdir)/build/mkdir.sh $(DESTDIR)$(includedir); \
fi;
@@ -90,7 +94,7 @@ install: $(TARGET_LIB)
if [ ! -d $(DESTDIR)$(bindir) ]; then \
$(top_srcdir)/build/mkdir.sh $(DESTDIR)$(bindir); \
fi;
- $(LIBTOOL) --mode=install cp apr-config $(DESTDIR)$(bindir)
+ $(LIBTOOL) --mode=install cp apr-config.out $(DESTDIR)$(bindir)/apr-config
chmod 755 $(DESTDIR)$(bindir)/apr-config
@if [ $(INSTALL_SUBDIRS) != "none" ]; then \
for i in $(INSTALL_SUBDIRS); do \