]> git.sur5r.net Git - openldap/blob - include/Makefile.in
Fix #ifdefs (DUPENT should be behind the 0)
[openldap] / include / Makefile.in
1 # $OpenLDAP$
2 ## Copyright 1998-2002 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                 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             editor=`cygpath -w $(EDITOR) | \
47                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
48             sendmail=`cygpath -w $(SENDMAIL) | \
49                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
50         else \
51             sysconfdir=$(sysconfdir); \
52             datadir=$(datadir); \
53             bindir=$(bindir); \
54             sbindir=$(sbindir); \
55             libexecdir=$(libexecdir); \
56             localstatedir=$(localstatedir); \
57             editor=$(EDITOR); \
58             sendmail=$(SENDMAIL); \
59         fi; \
60         $(SED) \
61                         -e "s;%SYSCONFDIR%;$$sysconfdir;" \
62                         -e "s;%DATADIR%;$$datadir;" \
63                         -e "s;%BINDIR%;$$bindir;" \
64                         -e "s;%SBINDIR%;$$sbindir;" \
65                         -e "s;%LIBEXECDIR%;$$libexecdir;" \
66                         -e "s;%RUNDIR%;$$localstatedir;" \
67                         -e "s;%EDITOR%;$$editor;" \
68                         -e "s;%SENDMAIL%;$$sendmail;" \
69                          $(LDAP_CONFIG) >> $@; \
70         $(CHMOD) 444 $@
71
72 all-common:                     all-local
73 install-common:         all-common install-local
74 clean-common:           clean-local
75 veryclean-common:       veryclean-local
76 depend-common:          depend-local
77