mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-22 14:53:33 -05:00
ITS#8169 Allow passing mandir to make install
The motivation for this change is my distribution moving to a multiarch
layout. While the architecture specific stuff (binaries, libraries,
etc.) is installed under /usr/${host}/{bin,lib,...} architecture-independent
data should still be installed to /usr/share/.
This commit is contained in:
parent
16b82752fc
commit
376aea80db
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ CFLAGS = $(THREADS) $(OPT) $(W) $(XCFLAGS)
|
||||||
LDLIBS =
|
LDLIBS =
|
||||||
SOLIBS =
|
SOLIBS =
|
||||||
prefix = /usr/local
|
prefix = /usr/local
|
||||||
|
mandir = $(prefix)/man
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
|
|
@ -45,7 +46,7 @@ install: $(ILIBS) $(IPROGS) $(IHDRS)
|
||||||
for f in $(IPROGS); do cp $$f $(DESTDIR)$(prefix)/bin; done
|
for f in $(IPROGS); do cp $$f $(DESTDIR)$(prefix)/bin; done
|
||||||
for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/lib; done
|
for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/lib; done
|
||||||
for f in $(IHDRS); do cp $$f $(DESTDIR)$(prefix)/include; done
|
for f in $(IHDRS); do cp $$f $(DESTDIR)$(prefix)/include; done
|
||||||
for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/man/man1; done
|
for f in $(IDOCS); do cp $$f $(DESTDIR)$(mandir)/man1; done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(PROGS) *.[ao] *.[ls]o *~ testdb
|
rm -rf $(PROGS) *.[ao] *.[ls]o *~ testdb
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue