2 ## Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, See COPYRIGHT file
5 ## include Makefile.in for OpenLDAP
7 all-local: ldap_config.h FORCE
10 -$(MKDIR) $(DESTDIR)$(includedir)
11 for header in $(srcdir)/lber.h lber_types.h \
12 $(srcdir)/ldap.h $(srcdir)/ldap_cdefs.h \
13 $(srcdir)/ldap_schema.h $(srcdir)/ldap_utf8.h \
14 $(srcdir)/slapi-plugin.h ldap_features.h; \
16 $(INSTALL) $(INSTALLFLAGS) -m 644 $$header $(DESTDIR)$(includedir); \
22 veryclean-local: clean-local FORCE
23 $(RM) portable.h lber_types.h ldap_features.h
25 depend-local: ldap_config.h FORCE
27 LDAP_CONFIG=$(srcdir)/ldap_config.h.in
29 ldap_config.h: $(LDAP_CONFIG) Makefile
32 @echo "/* Generated from $(LDAP_CONFIG) on `date` */" > $@; \
33 if test $(PLAT) = NT; then \
34 sysconfdir=`cygpath -w $(sysconfdir) | \
35 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
36 datadir=`cygpath -w $(datadir) | \
37 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
38 bindir=`cygpath -w $(bindir) | \
39 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
40 sbindir=`cygpath -w $(sbindir) | \
41 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
42 libexecdir=`cygpath -w $(libexecdir) | \
43 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
44 localstatedir=`cygpath -w $(localstatedir) | \
45 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
47 sysconfdir=$(sysconfdir); \
51 libexecdir=$(libexecdir); \
52 localstatedir=$(localstatedir); \
53 localedir=$(localedir); \
56 -e "s;%SYSCONFDIR%;$$sysconfdir;" \
57 -e "s;%DATADIR%;$$datadir;" \
58 -e "s;%BINDIR%;$$bindir;" \
59 -e "s;%SBINDIR%;$$sbindir;" \
60 -e "s;%LIBEXECDIR%;$$libexecdir;" \
61 -e "s;%RUNDIR%;$$localstatedir;" \
62 -e "s;%LOCALEDIR%;$$localedir;" \
63 $(LDAP_CONFIG) >> $@; \
67 install-common: all-common install-local
68 clean-common: clean-local
69 veryclean-common: veryclean-local
70 depend-common: depend-local