]> git.sur5r.net Git - openldap/commitdiff
Add TMPROOT support for two phase building/installing.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 18 Mar 1999 17:36:55 +0000 (17:36 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 18 Mar 1999 17:36:55 +0000 (17:36 +0000)
make all
make TMPROOT=/tmp/root install
will install everything under $(TMPROOT)$(prefix).  Useful for
building bundling packages/ports for various operating systems.

build/top.mk

index da90135cbb85c309a4a1aec91e9ea2bd1d8efeeb..a72be162659b1cc11acce333ea958946de1006b6 100644 (file)
@@ -19,19 +19,19 @@ top_srcdir = @top_srcdir@
 VPATH = @srcdir@
 prefix = @prefix@
 exec_prefix = @exec_prefix@
-
 ldap_subdir = @ldap_subdir@
-bindir = @bindir@
-datadir = @datadir@/$(ldap_subdir)
-includedir = @includedir@
-infodir = @infodir@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-sysconfdir = @sysconfdir@/$(ldap_subdir)
+
+bindir = $(TMPROOT)@bindir@
+datadir = $(TMPROOT)@datadir@/$(ldap_subdir)
+includedir = $(TMPROOT)@includedir@
+infodir = $(TMPROOT)@infodir@
+libdir = $(TMPROOT)@libdir@
+libexecdir = $(TMPROOT)@libexecdir@
+localstatedir = $(TMPROOT)@localstatedir@
+mandir = $(TMPROOT)@mandir@
+sbindir = $(TMPROOT)@sbindir@
+sharedstatedir = $(TMPROOT)@sharedstatedir@
+sysconfdir = $(TMPROOT)@sysconfdir@/$(ldap_subdir)
 
 EXEEXT = @EXEEXT@
 OBJEXT = @OBJEXT@