]> git.sur5r.net Git - openldap/blob - include/Make-template
Fix abstract oc check
[openldap] / include / Make-template
1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1994 Regents of the University of Michigan.
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms are permitted
6 # provided that this notice is preserved and that due credit is given
7 # to the University of Michigan at Ann Arbor. The name of the University
8 # may not be used to endorse or promote products derived from this
9 # software without specific prior written permission. This software
10 # is provided ``as is'' without express or implied warranty.
11 #
12 #       LDAP include file makefile
13 #
14 #-----------------------------------------------------------------------------
15
16 LDAPSRC=..
17
18 all:    ldapconfig.h FORCE
19         @if [ ! -z "$(SYSEXITSPATH)" -a ! -r sysexits.h ]; then \
20             echo "$(LN) $(SYSEXITSPATH) sysexits.h"; \
21             $(LN) $(SYSEXITSPATH) sysexits.h; \
22         else \
23             exit 0; \
24         fi
25
26 ldapconfig.h:   ldapconfig.h.edit Makefile
27         @$(RM) $@
28         @echo "/*" > $@;  \
29         echo " * This file was automatically generated.  Do not edit it." >> $@; \
30         echo " * Instead, edit the file ldapconfig.h.edit.  See the LDAP" >> $@; \
31         echo " * INSTALL file for more information." >> $@; \
32         echo " */ " >> $@; \
33         echo "" >> $@; \
34         $(SED) -e 's;%ETCDIR%;$(RUNTIMEETCDIR);' ldapconfig.h.edit >> $@; \
35         $(CHMOD) 444 $@
36
37 install: all FORCE
38                 -$(MKDIR) -p $(INCLUDEDIR)
39                 $(INSTALL) $(INSTALLFLAGS) -m 644 ldap.h $(INCLUDEDIR)
40                 $(INSTALL) $(INSTALLFLAGS) -m 644 lber.h $(INCLUDEDIR)
41                 $(INSTALL) $(INSTALLFLAGS) -m 644 proto-lber.h $(INCLUDEDIR)
42                 $(INSTALL) $(INSTALLFLAGS) -m 644 proto-ldap.h $(INCLUDEDIR)
43                 $(INSTALL) $(INSTALLFLAGS) -m 644 disptmpl.h $(INCLUDEDIR)
44                 $(INSTALL) $(INSTALLFLAGS) -m 644 srchpref.h $(INCLUDEDIR)
45
46 depend: FORCE
47
48 clean:  FORCE
49
50 veryclean:      clean
51         $(RM) ldapconfig.h
52         @if [ ! -z "$(SYSEXITSPATH)" ]; then \
53             echo "$(RM) sysexits.h"; \
54             $(RM) sysexits.h; \
55         else \
56             exit 0; \
57         fi
58
59 links:
60         @echo "making links in `$(PWD)`
61         @$(LN) .src/*.h .
62         @cp .src/ldapconfig.h.edit .
63         @-$(RM) ldapconfig.h