2 ## Copyright 1998-2002 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 \
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'`; \
46 editor=`cygpath -w $(EDITOR) | \
47 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
48 finger=`cygpath -w $(FINGER) | \
49 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
50 sendmail=`cygpath -w $(SENDMAIL) | \
51 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
53 sysconfdir=$(sysconfdir); \
57 libexecdir=$(libexecdir); \
58 localstatedir=$(localstatedir); \
61 sendmail=$(SENDMAIL); \
64 -e "s;%SYSCONFDIR%;$$sysconfdir;" \
65 -e "s;%DATADIR%;$$datadir;" \
66 -e "s;%BINDIR%;$$bindir;" \
67 -e "s;%SBINDIR%;$$sbindir;" \
68 -e "s;%LIBEXECDIR%;$$libexecdir;" \
69 -e "s;%RUNDIR%;$$localstatedir;" \
70 -e "s;%EDITOR%;$$editor;" \
71 -e "s;%FINGER%;$$finger;" \
72 -e "s;%SENDMAIL%;$$sendmail;" \
73 $(LDAP_CONFIG) >> $@; \
77 install-common: all-common install-local
78 clean-common: clean-local
79 veryclean-common: veryclean-local
80 depend-common: depend-local