build the rest of the tools.

This commit is contained in:
christos 2021-12-29 18:13:43 +00:00
parent 1e4e60ba8d
commit ee157e9d66
1 changed files with 19 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2021/12/28 17:05:44 christos Exp $
# $NetBSD: Makefile,v 1.2 2021/12/29 18:13:43 christos Exp $
.include <bsd.init.mk>
@ -10,6 +10,12 @@ CPPFLAGS+=-I${SLAPD} -I${SLAPD}/back-monitor
MAN=slapd.8 slapd.conf.5
PROG = slapd
TOOLS=slapadd slapcat slapdn slapindex slapmodify slappasswd slaptest \
slapauth slapacl slapschema
.for tool in ${TOOLS}
LINKS+= ${BINDIR}/slapd ${BINDIR}/${tool}
MAN+=${tool}.8
.endfor
SRCS += \
main.c globals.c bconfig.c config.c daemon.c \
@ -42,13 +48,19 @@ PROGDPLIBS+= \
__makeman: .USE
${_MKTARGET_CREATE}
${TOOL_SED} -e s@LIBEXECDIR@/usr/sbin@g \
${TOOL_SED} \
-e s@LOCALSTATEDIR@/var@g \
-e s@SYSCONFDIR@/etc/openldap@g \
-e s@DATADIR@/usr/share@g \
-e s@SBINDIR@/usr/sbin@g \
-e s@BINDIR@/usr/bin@g \
-e s@LIBDIR@/usr/lib@g \
-e s@LIBEXECDIR@/usr/sbin@g \
-e s@MODULEDIR@/usr/lib/openldap@g \
-e s@ETCDIR@/etc/openldap@g ${.ALLSRC} > ${.TARGET}
slapd.8: ${LDAP_DISTDIR}/doc/man/man8/slapd.8 __makeman
slapd.conf.5: ${LDAP_DISTDIR}/doc/man/man5/slapd.conf.5 __makeman
CLEANFILES+= slapd.8
.for man in ${MAN}
${man}: ${LDAP_DISTDIR}/doc/man/man${man:E}/${man} __makeman
.endfor
.include <bsd.prog.mk>