]> git.sur5r.net Git - openldap/blob - include/Makefile.in
9f0f6220411fe6dc55064feedf87b89b24cd3d24
[openldap] / include / Makefile.in
1 # include Makefile.in for OpenLDAP
2 # $OpenLDAP$
3 ## Copyright 1998-2003 The OpenLDAP Foundation.
4 ## All rights reserved.
5 ##
6 ## Redistribution and use in source and binary forms, with or without
7 ## modification, are permitted only as authorized by the OpenLDAP
8 ## Public License.
9 ##
10 ## A copy of this license is available in the file LICENSE in the
11 ## top-level directory of the distribution or, alternatively, at
12 ## <http://www.OpenLDAP.org/license.html>.
13
14 all-local: ldap_config.h FORCE
15
16 install-local: FORCE
17         -$(MKDIR) $(DESTDIR)$(includedir)
18         for header in $(srcdir)/lber.h lber_types.h \
19                 $(srcdir)/ldap.h $(srcdir)/ldap_cdefs.h \
20                 $(srcdir)/ldap_schema.h $(srcdir)/ldap_utf8.h \
21                 $(srcdir)/slapi-plugin.h ldap_features.h; \
22         do \
23                 $(INSTALL) $(INSTALLFLAGS) -m 644 $$header $(DESTDIR)$(includedir); \
24         done
25
26 clean-local: FORCE 
27         $(RM) ldap_config.h
28
29 veryclean-local: clean-local FORCE
30         $(RM) portable.h lber_types.h ldap_features.h
31
32 depend-local: ldap_config.h FORCE
33
34 LDAP_CONFIG=$(srcdir)/ldap_config.h.in
35
36 ldap_config.h: $(LDAP_CONFIG) Makefile
37         @$(RM) $@
38         @echo "Making $@"
39         @echo "/* Generated from $(LDAP_CONFIG) on `date` */" > $@;  \
40         if test $(PLAT) = NT; then \
41             sysconfdir=`cygpath -w $(sysconfdir) | \
42                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
43             datadir=`cygpath -w $(datadir) | \
44                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
45             bindir=`cygpath -w $(bindir) | \
46                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
47             sbindir=`cygpath -w $(sbindir) | \
48                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
49             libexecdir=`cygpath -w $(libexecdir) | \
50                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
51             localstatedir=`cygpath -w $(localstatedir) | \
52                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
53         else \
54             sysconfdir=$(sysconfdir); \
55             datadir=$(datadir); \
56             bindir=$(bindir); \
57             sbindir=$(sbindir); \
58             libexecdir=$(libexecdir); \
59             localstatedir=$(localstatedir); \
60             localedir=$(localedir); \
61         fi; \
62         $(SED) \
63                         -e "s;%SYSCONFDIR%;$$sysconfdir;" \
64                         -e "s;%DATADIR%;$$datadir;" \
65                         -e "s;%BINDIR%;$$bindir;" \
66                         -e "s;%SBINDIR%;$$sbindir;" \
67                         -e "s;%LIBEXECDIR%;$$libexecdir;" \
68                         -e "s;%RUNDIR%;$$localstatedir;" \
69                         -e "s;%LOCALEDIR%;$$localedir;" \
70                          $(LDAP_CONFIG) >> $@; \
71         $(CHMOD) 444 $@
72
73 all-common:                     all-local
74 install-common:         all-common install-local
75 clean-common:           clean-local
76 veryclean-common:       veryclean-local
77 depend-common:          depend-local
78