]> git.sur5r.net Git - openldap/blob - include/Makefile.in
Delete unused EDITOR, SENDMAIL substitutions
[openldap] / include / Makefile.in
1 # $OpenLDAP$
2 ## Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, See COPYRIGHT file
4 ##
5 ## include Makefile.in for OpenLDAP
6
7 all-local: ldap_config.h FORCE
8
9 install-local: 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; \
15         do \
16                 $(INSTALL) $(INSTALLFLAGS) -m 644 $$header $(DESTDIR)$(includedir); \
17         done
18
19 clean-local: FORCE 
20         $(RM) ldap_config.h
21
22 veryclean-local: clean-local FORCE
23         $(RM) portable.h lber_types.h ldap_features.h
24
25 depend-local: ldap_config.h FORCE
26
27 LDAP_CONFIG=$(srcdir)/ldap_config.h.in
28
29 ldap_config.h: $(LDAP_CONFIG) Makefile
30         @$(RM) $@
31         @echo "Making $@"
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         else \
47             sysconfdir=$(sysconfdir); \
48             datadir=$(datadir); \
49             bindir=$(bindir); \
50             sbindir=$(sbindir); \
51             libexecdir=$(libexecdir); \
52             localstatedir=$(localstatedir); \
53         fi; \
54         $(SED) \
55                         -e "s;%SYSCONFDIR%;$$sysconfdir;" \
56                         -e "s;%DATADIR%;$$datadir;" \
57                         -e "s;%BINDIR%;$$bindir;" \
58                         -e "s;%SBINDIR%;$$sbindir;" \
59                         -e "s;%LIBEXECDIR%;$$libexecdir;" \
60                         -e "s;%RUNDIR%;$$localstatedir;" \
61                          $(LDAP_CONFIG) >> $@; \
62         $(CHMOD) 444 $@
63
64 all-common:                     all-local
65 install-common:         all-common install-local
66 clean-common:           clean-local
67 veryclean-common:       veryclean-local
68 depend-common:          depend-local
69