1 # include Makefile.in for OpenLDAP
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2005 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
16 all-local: ldap_config.h FORCE
19 -$(MKDIR) $(DESTDIR)$(includedir)
20 for header in $(srcdir)/lber.h lber_types.h \
21 $(srcdir)/ldap.h $(srcdir)/ldap_cdefs.h \
22 $(srcdir)/ldap_schema.h $(srcdir)/ldap_utf8.h \
23 $(srcdir)/slapi-plugin.h ldap_features.h; \
25 $(INSTALL) $(INSTALLFLAGS) -m 644 $$header $(DESTDIR)$(includedir); \
31 veryclean-local: clean-local FORCE
32 $(RM) portable.h lber_types.h ldap_features.h
34 depend-local: ldap_config.h FORCE
36 LDAP_CONFIG=$(srcdir)/ldap_config.h.in
38 ldap_config.h: $(LDAP_CONFIG) Makefile
41 @echo "/* Generated from $(LDAP_CONFIG) on `date` */" > $@; \
42 if test $(PLAT) = NT; then \
43 sysconfdir=`cygpath -w $(sysconfdir) | \
44 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
45 datadir=`cygpath -w $(datadir) | \
46 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
47 bindir=`cygpath -w $(bindir) | \
48 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
49 sbindir=`cygpath -w $(sbindir) | \
50 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
51 libexecdir=`cygpath -w $(libexecdir) | \
52 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
53 localstatedir=`cygpath -w $(localstatedir) | \
54 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
56 sysconfdir=$(sysconfdir); \
60 libexecdir=$(libexecdir); \
61 localstatedir=$(localstatedir); \
62 localedir=$(localedir); \
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;%LOCALEDIR%;$$localedir;" \
72 $(LDAP_CONFIG) >> $@; \
76 install-common: all-common install-local
77 clean-common: clean-local
78 veryclean-common: veryclean-local
79 depend-common: depend-local