1 # include Makefile.in for OpenLDAP
3 ## Copyright 1998-2003 The OpenLDAP Foundation.
4 ## All rights reserved.
6 ## Redistribution and use in source and binary forms, with or without
7 ## modification, are permitted only as authorized by the OpenLDAP
10 ## A copy of this license is available in the file LICENSE in the
11 ## top-level directory of the distribution or, alternatively, at
12 ## <http://www.OpenLDAP.org/license.html>.
14 all-local: ldap_config.h FORCE
17 -$(MKDIR) $(DESTDIR)$(includedir)
18 for header in $(srcdir)/lber.h lber_types.h \
19 $(srcdir)/ldap.h $(srcdir)/ldap_cdefs.h \
20 $(srcdir)/ldap_schema.h $(srcdir)/ldap_utf8.h \
21 $(srcdir)/slapi-plugin.h ldap_features.h; \
23 $(INSTALL) $(INSTALLFLAGS) -m 644 $$header $(DESTDIR)$(includedir); \
29 veryclean-local: clean-local FORCE
30 $(RM) portable.h lber_types.h ldap_features.h
32 depend-local: ldap_config.h FORCE
34 LDAP_CONFIG=$(srcdir)/ldap_config.h.in
36 ldap_config.h: $(LDAP_CONFIG) Makefile
39 @echo "/* Generated from $(LDAP_CONFIG) on `date` */" > $@; \
40 if test $(PLAT) = NT; then \
41 sysconfdir=`cygpath -w $(sysconfdir) | \
42 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
43 datadir=`cygpath -w $(datadir) | \
44 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
45 bindir=`cygpath -w $(bindir) | \
46 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
47 sbindir=`cygpath -w $(sbindir) | \
48 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
49 libexecdir=`cygpath -w $(libexecdir) | \
50 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
51 localstatedir=`cygpath -w $(localstatedir) | \
52 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
54 sysconfdir=$(sysconfdir); \
58 libexecdir=$(libexecdir); \
59 localstatedir=$(localstatedir); \
60 localedir=$(localedir); \
63 -e "s;%SYSCONFDIR%;$$sysconfdir;" \
64 -e "s;%DATADIR%;$$datadir;" \
65 -e "s;%BINDIR%;$$bindir;" \
66 -e "s;%SBINDIR%;$$sbindir;" \
67 -e "s;%LIBEXECDIR%;$$libexecdir;" \
68 -e "s;%RUNDIR%;$$localstatedir;" \
69 -e "s;%LOCALEDIR%;$$localedir;" \
70 $(LDAP_CONFIG) >> $@; \
74 install-common: all-common install-local
75 clean-common: clean-local
76 veryclean-common: veryclean-local
77 depend-common: depend-local