]> git.sur5r.net Git - openldap/blob - include/Makefile.in
Preliminary Make rules to allow building backends as modules.
[openldap] / include / Makefile.in
1 ## Copyright 1998 The OpenLDAP Foundation, All Rights Reserved.
2 ## COPYING RESTRICTIONS APPLY, See COPYRIGHT file
3 ##
4 ## include Makefile.in for OpenLDAP
5
6 all-local: ldap_config.h FORCE
7
8 install-local: FORCE
9                 -$(MKDIR) -p $(includedir)
10                 $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/lber.h $(includedir)
11                 $(INSTALL) $(INSTALLFLAGS) -m 644 lber_types.h $(includedir)
12                 $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/ldap.h $(includedir)
13                 $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/ldap_cdefs.h $(includedir)
14                 $(INSTALL) $(INSTALLFLAGS) -m 644 ldap_features.h $(includedir)
15                 $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/ldap_schema.h $(includedir)
16                 $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/disptmpl.h $(includedir)
17                 $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/srchpref.h $(includedir)
18
19 clean-local: FORCE 
20         $(RM) ldap_config.h
21
22 veryclean-local: clean-local FORCE
23         $(RM) portable.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         $(SED) \
34                         -e 's;%SYSCONFDIR%;$(sysconfdir);' \
35                         -e 's;%DATADIR%;$(datadir);' \
36                         -e 's;%BINDIR%;$(bindir);' \
37                         -e 's;%SBINDIR%;$(sbindir);' \
38                         -e 's;%LIBEXECDIR%;$(libexecdir);' \
39                         -e 's;%RUNDIR%;$(localstatedir);' \
40                         -e 's;%EDITOR%;$(EDITOR);' \
41                         -e 's;%FINGER%;$(FINGER);' \
42                         -e 's;%SENDMAIL%;$(SENDMAIL);' \
43                          $(LDAP_CONFIG) >> $@; \
44         $(CHMOD) 444 $@
45
46 all-common:                     all-local
47 install-common:         all-common install-local
48 clean-common:           clean-local
49 veryclean-common:       veryclean-local
50 depend-common:          depend-local