# $OpenLDAP$
-## Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
+## Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
## COPYING RESTRICTIONS APPLY, See COPYRIGHT file
##
## include Makefile.in for OpenLDAP
-all-local: ldap_config.h FORCE
+all-local: ldap_config.h ol_version0.h FORCE
install-local: FORCE
-$(MKDIR) $(DESTDIR)$(includedir)
$(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
localstatedir=`cygpath -w $(localstatedir) | \
$(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
- editor=`cygpath -w $(EDITOR) | \
- $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
- sendmail=`cygpath -w $(SENDMAIL) | \
- $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
else \
sysconfdir=$(sysconfdir); \
datadir=$(datadir); \
sbindir=$(sbindir); \
libexecdir=$(libexecdir); \
localstatedir=$(localstatedir); \
- editor=$(EDITOR); \
- sendmail=$(SENDMAIL); \
fi; \
$(SED) \
-e "s;%SYSCONFDIR%;$$sysconfdir;" \
-e "s;%SBINDIR%;$$sbindir;" \
-e "s;%LIBEXECDIR%;$$libexecdir;" \
-e "s;%RUNDIR%;$$localstatedir;" \
- -e "s;%EDITOR%;$$editor;" \
- -e "s;%SENDMAIL%;$$sendmail;" \
$(LDAP_CONFIG) >> $@; \
$(CHMOD) 444 $@
+ol_version0.h: $(top_srcdir)/build/version.h
+ $(CPP) -D_OLV_WHO=\"$$USER@`uname -n`\" $? > $@
+
all-common: all-local
install-common: all-common install-local
clean-common: clean-local