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