1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1994 Regents of the University of Michigan.
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.
12 # LDAP include file makefile
14 #-----------------------------------------------------------------------------
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; \
26 ldapconfig.h: ldapconfig.h.edit Makefile
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." >> $@; \
34 $(SED) -e 's;%ETCDIR%;$(RUNTIMEETCDIR);' ldapconfig.h.edit >> $@; \
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)
52 @if [ ! -z "$(SYSEXITSPATH)" ]; then \
53 echo "$(RM) sysexits.h"; \
60 @echo "making links in `$(PWD)`
62 @cp .src/ldapconfig.h.edit .