diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2002-06-15 04:41:52 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2002-06-15 04:41:52 +0000 |
commit | 40f2340bf602000828b1d8e242343d9b97d38b0f (patch) | |
tree | fa15ccd52af30f4ddce5fdd11e93d6e01c3f88dd /Makefile.in | |
parent | a72c2c62dfad76d433774edc298b6f07c6765e2b (diff) | |
download | libapr-40f2340bf602000828b1d8e242343d9b97d38b0f.tar.gz |
Allow 'make install DESTDIR=/path'. This allows packagers to install
into a directory different from the one that was configured. This
also mirrors the root= feature from 1.3. We cannot use prefix=,
because both APR and APR-util resolve their installation paths at
configuration time. This means that there is no variable prefix
to replace.
PR: 7803
Submitted by: Andreas Hasenack <andreas@netbank.com.br>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63503 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/Makefile.in b/Makefile.in index df7ea01ea..40af0f380 100644 --- a/Makefile.in +++ b/Makefile.in @@ -59,37 +59,37 @@ delete-lib: fi install: $(TARGET_LIB) - if [ ! -d $(includedir) ]; then \ - $(top_srcdir)/build/mkdir.sh $(includedir); \ + if [ ! -d $(DESTDIR)$(includedir) ]; then \ + $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(includedir); \ fi; - cp -p $(top_srcdir)/include/*.h $(includedir); + cp -p $(top_srcdir)/include/*.h $(DESTDIR)$(includedir); if test -n "$(top_blddir)"; then \ - cp -p $(top_blddir)/include/*.h $(includedir); \ + cp -p $(top_blddir)/include/*.h $(DESTDIR)$(includedir); \ fi; - if [ ! -d $(libdir) ]; then \ - $(top_srcdir)/build/mkdir.sh $(libdir); \ + if [ ! -d $(DESTDIR)$(libdir) ]; then \ + $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(libdir); \ fi; - $(LIBTOOL) --mode=install cp $(TARGET_LIB) $(libdir) - $(LIBTOOL) --mode=install cp APRVARS $(libdir) - $(LIBTOOL) --mode=install cp apr.exp $(libdir) - if [ ! -d $(installbuilddir) ]; then \ - $(top_srcdir)/build/mkdir.sh $(installbuilddir); \ + $(LIBTOOL) --mode=install cp $(TARGET_LIB) $(DESTDIR)$(libdir) + $(LIBTOOL) --mode=install cp APRVARS $(DESTDIR)$(libdir) + $(LIBTOOL) --mode=install cp apr.exp $(DESTDIR)$(libdir) + if [ ! -d $(DESTDIR)$(installbuilddir) ]; then \ + $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(installbuilddir); \ fi; if [ -f libtool ]; then \ - $(LIBTOOL) --mode=install cp libtool $(installbuilddir); \ + $(LIBTOOL) --mode=install cp libtool $(DESTDIR)$(installbuilddir); \ fi; if [ -f shlibtool ]; then \ - $(LIBTOOL) --mode=install cp shlibtool $(installbuilddir); \ + $(LIBTOOL) --mode=install cp shlibtool $(DESTDIR)$(installbuilddir); \ fi; - if [ ! -d $(bindir) ]; then \ - $(top_srcdir)/build/mkdir.sh $(bindir); \ + if [ ! -d $(DESTDIR)$(bindir) ]; then \ + $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(bindir); \ fi; - $(LIBTOOL) --mode=install cp apr-config $(bindir) - chmod 755 $(bindir)/apr-config + $(LIBTOOL) --mode=install cp apr-config $(DESTDIR)$(bindir) + chmod 755 $(DESTDIR)$(bindir)/apr-config @if [ $(INSTALL_SUBDIRS) != "none" ]; then \ for i in $(INSTALL_SUBDIRS); do \ - ( cd $$i ; $(MAKE) install ); \ + ( cd $$i ; $(MAKE) root=$(DESTDIR) install ); \ done \ fi |