changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: mkone: fix man target (thanks Amavect)

changeset 7241: 4b6277dd0535
parent 7239: c0e23a8829f7
child 7242: 13cc4ad135d6
child 7243: 34f64dcbbc25
author: cinap_lenrek@felloff.net
date: Fri, 17 May 2019 01:51:28 +0200
files: sys/src/cmd/mkone
description: mkone: fix man target (thanks Amavect)

Amavect wrote:
> mkone and mkmany have backwards targets for installing man pages.
> This patch makes 'mk man' actually work for mkfiles that include mkone.
> mkmany is not easily fixed without breaking changes.
> It may go without saying that external repos should write their own mkfiles.
     1.1--- a/sys/src/cmd/mkone
     1.2+++ b/sys/src/cmd/mkone
     1.3@@ -56,8 +56,7 @@ safeinstallall:V:
     1.4 %.acid: %.$O $HFILES
     1.5 	$CC $CFLAGS -a $stem.c >$target
     1.6 
     1.7-%.man:	$MAN/$stem
     1.8-	cp $stem.man $MAN/$stem
     1.9+$MAN/%:    %.man
    1.10+	cp $prereq $target
    1.11 
    1.12-man:V:	$TARG.man
    1.13-
    1.14+man:V:    $MAN/$TARG