]> git.sur5r.net Git - openldap/blob - include/Makefile.in
a runqueue for periodic thread execution (for syncrepl)
[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             localedir=$(localedir); \
54         fi; \
55         $(SED) \
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) >> $@; \
64         $(CHMOD) 444 $@
65
66 all-common:                     all-local
67 install-common:         all-common install-local
68 clean-common:           clean-local
69 veryclean-common:       veryclean-local
70 depend-common:          depend-local
71