]> git.sur5r.net Git - openldap/blob - include/Makefile.in
Don't copy and leak user; it's an env var so just use it directly.
[openldap] / include / Makefile.in
1 # $OpenLDAP$
2 ## Copyright 1998-2000 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                 $(srcdir)/disptmpl.h $(srcdir)/srchpref.h; \
16         do \
17                 $(INSTALL) $(INSTALLFLAGS) -m 644 $$header $(DESTDIR)$(includedir); \
18         done
19
20 clean-local: FORCE 
21         $(RM) ldap_config.h
22
23 veryclean-local: clean-local FORCE
24         $(RM) portable.h lber_types.h ldap_features.h
25
26 depend-local: ldap_config.h FORCE
27
28 LDAP_CONFIG=$(srcdir)/ldap_config.h.in
29
30 ldap_config.h: $(LDAP_CONFIG) Makefile
31         @$(RM) $@
32         @echo "Making $@"
33         @echo "/* Generated from $(LDAP_CONFIG) on `date` */" > $@;  \
34         if test $(PLAT) = NT; then \
35             sysconfdir=`cygpath -w $(sysconfdir) | \
36                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
37             datadir=`cygpath -w $(datadir) | \
38                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
39             bindir=`cygpath -w $(bindir) | \
40                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
41             sbindir=`cygpath -w $(sbindir) | \
42                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
43             libexecdir=`cygpath -w $(libexecdir) | \
44                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
45             localstatedir=`cygpath -w $(localstatedir) | \
46                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
47             editor=`cygpath -w $(EDITOR) | \
48                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
49             finger=`cygpath -w $(FINGER) | \
50                 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
51             sendmail=`cygpath -w $(SENDMAIL) | \
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             editor=$(EDITOR); \
61             finger=$(FINGER); \
62             sendmail=$(SENDMAIL); \
63         fi; \
64         $(SED) \
65                         -e "s;%SYSCONFDIR%;$$sysconfdir;" \
66                         -e "s;%DATADIR%;$$datadir;" \
67                         -e "s;%BINDIR%;$$bindir;" \
68                         -e "s;%SBINDIR%;$$sbindir;" \
69                         -e "s;%LIBEXECDIR%;$$libexecdir;" \
70                         -e "s;%RUNDIR%;$$localstatedir;" \
71                         -e "s;%EDITOR%;$$editor;" \
72                         -e "s;%FINGER%;$$finger;" \
73                         -e "s;%SENDMAIL%;$$sendmail;" \
74                          $(LDAP_CONFIG) >> $@; \
75         $(CHMOD) 444 $@
76
77 all-common:                     all-local
78 install-common:         all-common install-local
79 clean-common:           clean-local
80 veryclean-common:       veryclean-local
81 depend-common:          depend-local
82