X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=build%2Fman.mk;h=12041a51945cf750a4dffde049aca0451012a617;hb=8cacaf40eb50b66efa28d75593ecef2946f5db97;hp=a63385d88ae944eded5c3275154c69328947bc5a;hpb=29d9fa20a2823c827f098d78f1ea8539d86bf4cf;p=openldap diff --git a/build/man.mk b/build/man.mk index a63385d88a..12041a5194 100644 --- a/build/man.mk +++ b/build/man.mk @@ -1,11 +1,20 @@ # $OpenLDAP$ -## Copyright 1998-2000 The OpenLDAP Foundation -## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory -## of this package for details. -##--------------------------------------------------------------------------- +## This work is part of OpenLDAP Software . +## +## Copyright 1998-2007 The OpenLDAP Foundation. +## All rights reserved. ## -## Makefile Template for Manual Pages +## Redistribution and use in source and binary forms, with or without +## modification, are permitted only as authorized by the OpenLDAP +## Public License. ## +## A copy of this license is available in the file LICENSE in the +## top-level directory of the distribution or, alternatively, at +## . +##--------------------------------------------------------------------------- +# +# Makefile Template for Manual Pages +# MANDIR=$(mandir)/man$(MANSECT) TMP_SUFFIX=tmp @@ -22,21 +31,23 @@ all-common: -e 's%BINDIR%$(bindir)%' \ -e 's%LIBDIR%$(libdir)%' \ -e 's%LIBEXECDIR%$(libexecdir)%' \ - $(srcdir)/$$page > $$page.$(TMP_SUFFIX); \ + -e 's%RELEASEDATE%$(RELEASEDATE)%' \ + $(srcdir)/$$page \ + | (cd $(srcdir); $(SOELIM) -) > $$page.$(TMP_SUFFIX); \ done install-common: -$(MKDIR) $(DESTDIR)$(MANDIR) PAGES=`cd $(srcdir); echo *.$(MANSECT)`; \ for page in $$PAGES; do \ - echo "installing $(MANDIR)/$$page"; \ + echo "installing $$page in $(DESTDIR)$(MANDIR)"; \ $(RM) $(DESTDIR)$(MANDIR)/$$page; \ $(INSTALL) $(INSTALLFLAGS) -m 644 $$page.$(TMP_SUFFIX) $(DESTDIR)$(MANDIR)/$$page; \ if test -f "$(srcdir)/$$page.links" ; then \ for link in `$(CAT) $(srcdir)/$$page.links`; do \ - echo "installing $(MANDIR)/$$link as link to $$page"; \ + echo "installing $$link in $(DESTDIR)$(MANDIR) as link to $$page"; \ $(RM) $(DESTDIR)$(MANDIR)/$$link ; \ - $(LN_S) $$page $(DESTDIR)$(MANDIR)/$$link; \ + $(LN_S) $(DESTDIR)$(MANDIR)/$$page $(DESTDIR)$(MANDIR)/$$link; \ done; \ fi; \ done