Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / openldap / Makefile
blob3509779b4edfc93485983ef2acb4fa3e4a31371b
1 # $NetBSD: Makefile,v 1.1 2008/05/22 13:57:46 lukem Exp $
3 .include "openldap.mk"
5 SUBDIR= include
7 SUBDIR+= lib .WAIT
9 SUBDIR+= bin
13 # maintainer rules
14 # ----------------
16 # configure run configure and create various files for target build.
17 # update-include make configure, then update ./include/ appropriately
18 # update-man make configure, then update ./man/ appropriately
22 # Run configure to create various files.
23 # This should only be necessary after updating ./dist/
26 CONFIGURE_ARGS+= --prefix=${LDAP_PREFIX}
27 CONFIGURE_ARGS+= --sysconfdir=${LDAP_ETCDIR}
28 CONFIGURE_ARGS+= --localstatedir=${LDAP_RUNDIR}
30 CONFIGURE_ARGS+= --enable-dynamic
31 CONFIGURE_ARGS+= --disable-slapd
32 CONFIGURE_ARGS+= --with-tls=openssl
33 CONFIGURE_ARGS+= --with-threads
34 CONFIGURE_ARGS+= --without-cyrus-sasl
36 configure: work/config.status .PHONY
38 work/config.status: ${LDAP_DISTDIR}/configure Makefile openldap.mk
39 mkdir -p work
40 (cd work \
41 && ${CONFIGURE_ENV} sh ${LDAP_DISTDIR}/configure ${CONFIGURE_ARGS} \
42 || false)
44 update-include: work/config.status .PHONY
45 (cd work/include \
46 && ${MAKE} ldap_config.h \
47 || false)
48 @for wf in `find work/include -name '*.h'`; do \
49 tf=${LDAP_SRCDIR}/include/$${wf##*/}; \
50 tf=$${tf%.tmp} ; \
51 cmp -s $${wf} $${tf} > /dev/null 2>&1 || ( \
52 rm -f $${tf} && \
53 cp $${wf} $${tf} && \
54 echo "Updated $${tf}" ; \
55 ) ; \
56 done
58 update-man: work/config.status .PHONY
59 (cd work/doc/man \
60 && ${MAKE} \
61 || false)
62 @for wf in `find work/doc/man -name '*.[0-9].tmp'` ; do \
63 tf=${LDAP_SRCDIR}/man/$${wf##*/}; \
64 tf=$${tf%.tmp} ; \
65 cmp -s $${wf} $${tf} > /dev/null 2>&1 || ( \
66 rm -f $${tf} && \
67 cp $${wf} $${tf} && \
68 echo "Updated $${tf}" ; \
69 ) ; \
70 done
73 .PHONY: clean.work
75 clean: clean.work
76 clean.work:
77 -rm -f -r work
80 .include <bsd.hostprog.mk>
81 .include <bsd.subdir.mk>