#-----------------------------------------------------------------------------
# Copyright (c) 1990 Regents of the University of Michigan.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of Michigan at Ann Arbor. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
#       LDAP documentation makefile
#
#-----------------------------------------------------------------------------

install: $(MANDIR)/man3/ldap-operations.3 $(MANDIR)/man3/ldap-parsing.3 \
	$(MANDIR)/man3/lber-encoding.3 $(MANDIR)/man3/lber-decoding.3 \
	$(MANDIR)/man8/ldapd.8 $(MANDIR)/man3/ldap-synchronous.3

$(MANDIR)/man3/ldap-operations.3:	ldap-operations.3
	install -c -m 644 ldap-operations.3 $(MANDIR)/man3/

$(MANDIR)/man3/ldap-parsing.3:		ldap-parsing.3
	install -c -m 644 ldap-parsing.3 $(MANDIR)/man3/

$(MANDIR)/man3/lber-encoding.3:		lber-encoding.3
	install -c -m 644 lber-encoding.3 $(MANDIR)/man3/

$(MANDIR)/man3/lber-decoding.3:		lber-decoding.3
	install -c -m 644 lber-decoding.3 $(MANDIR)/man3/

$(MANDIR)/man8/ldapd.8:	ldapd.8
	sed -e 's%ETCDIR%$(ETCDIR)%' ldapd.8 > /tmp/tmpfile
	install -c -m 644 /tmp/tmpfile $(MANDIR)/man8/ldapd.8
	rm -f /tmp/tmpfile

$(MANDIR)/man3/ldap-synchronous.3:	ldap-synchronous.3
	install -c -m 644 ldap-synchronous.3 $(MANDIR)/man3/

clean:
