summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKarl MacMillan <kmacmill@redhat.com>2007-11-13 13:10:27 -0500
committerKarl MacMillan <kmacmill@redhat.com>2007-11-13 13:10:27 -0500
commit39dcd194ca6e2b677aa1f4726bf1a60016b20a67 (patch)
treef06b455e2c262f1ed0f89468c709da1bc259f2fa /Makefile
parent24d5777bd682636b36b96193c2ec2c8bcb6f684f (diff)
downloadfreeipa-39dcd194ca6e2b677aa1f4726bf1a60016b20a67.tar.gz
freeipa-39dcd194ca6e2b677aa1f4726bf1a60016b20a67.tar.xz
freeipa-39dcd194ca6e2b677aa1f4726bf1a60016b20a67.zip
Allow setting of lib directory to correct non-rpm builds on x86_64.
With this patch you will need to run: make autogen LIBDIR=/usr/lib64 Also works for 'make all'.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index dac50794..cf919fda 100644
--- a/Makefile
+++ b/Makefile
@@ -35,18 +35,20 @@ CLI_VERSION=$(CLI_MAJOR).$(CLI_MINOR).$(CLI_RELEASE)
CLI_TARBALL_PREFIX=$(PRJ_PREFIX)-client-$(CLI_VERSION)
CLI_TARBALL=$(CLI_TARBALL_PREFIX).tgz
+LIBDIR ?= /usr/lib
+
all: bootstrap-autogen
@for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
bootstrap-autogen:
- cd ipa-server; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc; fi
- cd ipa-client; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc; fi
+ cd ipa-server; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=$(LIBDIR); fi
+ cd ipa-client; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=$(LIBDIR); fi
autogen:
- cd ipa-server; ./autogen.sh --prefix=/usr --sysconfdir=/etc;
- cd ipa-client; ./autogen.sh --prefix=/usr --sysconfdir=/etc;
+ cd ipa-server; ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=$(LIBDIR)
+ cd ipa-client; ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=$(LIBDIR)
configure:
cd ipa-server; ./configure --prefix=/usr --sysconfdir=/etc