summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mkone
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-05-17 01:51:28 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2019-05-17 01:51:28 +0200
commit335e019746d2572162c83b8f6c5c243baf1ceda4 (patch)
tree5102ec83486b1cd23a45778cd41274152f94eaa3 /sys/src/cmd/mkone
parentb24ed2bfac81798221977ffed8980d2b4eeab199 (diff)
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.
Diffstat (limited to 'sys/src/cmd/mkone')
-rw-r--r--sys/src/cmd/mkone7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/src/cmd/mkone b/sys/src/cmd/mkone
index ea68bad4c..ad0c97901 100644
--- a/sys/src/cmd/mkone
+++ b/sys/src/cmd/mkone
@@ -56,8 +56,7 @@ safeinstallall:V:
%.acid: %.$O $HFILES
$CC $CFLAGS -a $stem.c >$target
-%.man: $MAN/$stem
- cp $stem.man $MAN/$stem
-
-man:V: $TARG.man
+$MAN/%: %.man
+ cp $prereq $target
+man:V: $MAN/$TARG