shithub: riscv

Download patch

ref: 335e019746d2572162c83b8f6c5c243baf1ceda4
parent: b24ed2bfac81798221977ffed8980d2b4eeab199
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu May 16 21:51:28 EDT 2019

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.

--- a/sys/src/cmd/mkone
+++ b/sys/src/cmd/mkone
@@ -56,8 +56,7 @@
 %.acid: %.$O $HFILES
 	$CC $CFLAGS -a $stem.c >$target
 
-%.man:	$MAN/$stem
-	cp $stem.man $MAN/$stem
+$MAN/%:    %.man
+	cp $prereq $target
 
-man:V:	$TARG.man
-
+man:V:    $MAN/$TARG