X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=build%2Fman.mk;h=6d25337bdb47148b939455c5729c228cbe70cad4;hb=49bf49de06a1aab8a2b7b5df2675672e6cd7282b;hp=8b693968e24d08eac5b42bf117309a632bb223f6;hpb=afba0527a5a6701beaddc39a00105d3cd2837766;p=openldap
diff --git a/build/man.mk b/build/man.mk
index 8b693968e2..6d25337bdb 100644
--- a/build/man.mk
+++ b/build/man.mk
@@ -1,10 +1,20 @@
-## Copyright 1998,1999 The OpenLDAP Foundation
-## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
-## of this package for details.
-##---------------------------------------------------------------------------
+# $OpenLDAP$
+## This work is part of OpenLDAP Software .
+##
+## Copyright 1998-2005 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
@@ -21,22 +31,22 @@ all-common:
-e 's%BINDIR%$(bindir)%' \
-e 's%LIBDIR%$(libdir)%' \
-e 's%LIBEXECDIR%$(libexecdir)%' \
+ -e 's%RELEASEDATE%$(RELEASEDATE)%' \
$(srcdir)/$$page > $$page.$(TMP_SUFFIX); \
done
- touch all-common
install-common:
- -$(MKDIR) $(MANDIR)
+ -$(MKDIR) $(DESTDIR)$(MANDIR)
PAGES=`cd $(srcdir); echo *.$(MANSECT)`; \
for page in $$PAGES; do \
echo "installing $(MANDIR)/$$page"; \
- $(RM) $(MANDIR)/$$page; \
- $(INSTALL) $(INSTALLFLAGS) -m 644 $$page.$(TMP_SUFFIX) $(MANDIR)/$$page; \
+ $(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"; \
- $(RM) $(MANDIR)$$link ; \
- $(LN_S) $$page $(MANDIR)/$$link; \
+ $(RM) $(DESTDIR)$(MANDIR)/$$link ; \
+ $(LN_S) $$page $(DESTDIR)$(MANDIR)/$$link; \
done; \
fi; \
done