1# include Makefile.in for OpenLDAP 2# OpenLDAP: pkg/ldap/include/Makefile.in,v 1.33.2.5 2010/04/13 20:22:47 kurt Exp 3## This work is part of OpenLDAP Software <http://www.openldap.org/>. 4## 5## Copyright 1998-2010 The OpenLDAP Foundation. 6## All rights reserved. 7## 8## Redistribution and use in source and binary forms, with or without 9## modification, are permitted only as authorized by the OpenLDAP 10## Public License. 11## 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>. 15 16all-local: ldap_config.h FORCE 17 18install-local: 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; \ 24 do \ 25 $(INSTALL) $(INSTALLFLAGS) -m 644 $$header $(DESTDIR)$(includedir); \ 26 done 27 28clean-local: FORCE 29 $(RM) ldap_config.h 30 31veryclean-local: clean-local FORCE 32 $(RM) portable.h lber_types.h ldap_features.h 33 34depend-local: ldap_config.h FORCE 35 36LDAP_CONFIG=$(srcdir)/ldap_config.hin 37 38ldap_config.h: $(LDAP_CONFIG) Makefile 39 @$(RM) $@ 40 @echo "Making $@" 41 @echo "/* Generated from $(LDAP_CONFIG) */" > $@; \ 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 moduledir=`cygpath -w $(moduledir) | \ 54 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \ 55 localstatedir=`cygpath -w $(localstatedir) | \ 56 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \ 57 else \ 58 sysconfdir=$(sysconfdir); \ 59 datadir=$(datadir); \ 60 bindir=$(bindir); \ 61 sbindir=$(sbindir); \ 62 libexecdir=$(libexecdir); \ 63 moduledir=$(moduledir); \ 64 localstatedir=$(localstatedir); \ 65 localedir=$(localedir); \ 66 fi; \ 67 $(SED) \ 68 -e "s;%SYSCONFDIR%;$$sysconfdir;" \ 69 -e "s;%DATADIR%;$$datadir;" \ 70 -e "s;%BINDIR%;$$bindir;" \ 71 -e "s;%SBINDIR%;$$sbindir;" \ 72 -e "s;%LIBEXECDIR%;$$libexecdir;" \ 73 -e "s;%MODULEDIR%;$$moduledir;" \ 74 -e "s;%RUNDIR%;$$localstatedir;" \ 75 -e "s;%LOCALEDIR%;$$localedir;" \ 76 $(LDAP_CONFIG) >> $@; \ 77 $(CHMOD) 444 $@ 78 79all-common: all-local 80install-common: all-common install-local 81clean-common: clean-local 82veryclean-common: veryclean-local 83depend-common: depend-local 84 85