From 39e5c8b2611cc6582b29b64755237484248b8cab Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sat, 3 Nov 2007 10:30:41 +0000 Subject: add a BEFOREMAN hook variable, for those programs that need something to be done before they can build their manpages. `ah right' millert@ --- share/mk/bsd.README | 6 +++++- share/mk/bsd.man.mk | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/mk/bsd.README b/share/mk/bsd.README index e42bb8cb8d2..e13685bea4e 100644 --- a/share/mk/bsd.README +++ b/share/mk/bsd.README @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.README,v 1.39 2005/11/23 22:11:48 jmc Exp $ +# $OpenBSD: bsd.README,v 1.40 2007/11/03 10:30:40 espie Exp $ # $NetBSD: bsd.README,v 1.17 1996/04/13 02:08:08 thorpej Exp $ # @(#)bsd.README 5.1 (Berkeley) 5/11/90 @@ -127,6 +127,10 @@ MLINKS List of manual page links (using a .1 - .9 suffix). The linked-to file must come first, the linked file second, and there may be multiple pairs. The files are soft-linked. +BEFOREMAN List of extra targets that must be already built before the + man target can be run. Those targets must be real files (and + not .PHONY targets). + The include file includes a file named "../Makefile.inc" if it exists. diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk index f374cf6f2e3..929a6450b6a 100644 --- a/share/mk/bsd.man.mk +++ b/share/mk/bsd.man.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.man.mk,v 1.28 2004/02/08 01:19:54 espie Exp $ +# $OpenBSD: bsd.man.mk,v 1.29 2007/11/03 10:30:40 espie Exp $ # $NetBSD: bsd.man.mk,v 1.23 1996/02/10 07:49:33 jtc Exp $ # @(#)bsd.man.mk 5.2 (Berkeley) 5/11/90 @@ -116,6 +116,10 @@ maninstall: .if (defined(MANALL) || defined(PSALL)) && !defined(MANLOCALBUILD) all: ${MANALL} ${PSALL} +BEFOREMAN?= +${MANALL} ${PSALL}: ${BEFOREMAN} + + cleandir: cleanman cleanman: rm -f ${MANALL} ${PS2ALL} -- cgit v1.2.3