aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-09-21 11:04:40 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-09-21 11:04:40 +0000
commite2d87f80b3cfbe9328b84922bc483e69b78f6f54 (patch)
tree7dd9383558732ef8b8ea0095f81be725ad3fe913
parentb36441d743a962efef5fc148dbaa1bffec3ec0d1 (diff)
downloadmandoc-e2d87f80b3cfbe9328b84922bc483e69b78f6f54.tar.gz
mandoc-e2d87f80b3cfbe9328b84922bc483e69b78f6f54.tar.zst
mandoc-e2d87f80b3cfbe9328b84922bc483e69b78f6f54.zip
POSIX make(1) does not support prerequisites on suffix rules.
For HTML generation, the "mandoc" prerequisite isn't needed anyway because ${WWW_MANS} already explicitly depends on mandoc. Issue reported by Sevan Janiyan and Leah Neukirchen. This is not critical for release because it is only used for a maintainer target. While here, i also fixed the associated shell command to use the freshly built mandoc binary rather than whatever may be in the $PATH.
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6871af8d..48c47418 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.539 2021/09/20 10:19:51 schwarze Exp $
+# $Id: Makefile,v 1.540 2021/09/21 11:04:40 schwarze Exp $
#
# Copyright (c) 2011, 2013-2021 Ingo Schwarze <schwarze@openbsd.org>
# Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -603,7 +603,7 @@ dist-install: dist
.h.h.html:
highlight -I $< > $@
-.1.1.html .3.3.html .5.5.html .7.7.html .8.8.html: mandoc
- mandoc -Thtml -Wwarning,stop \
+.1.1.html .3.3.html .5.5.html .7.7.html .8.8.html:
+ ./mandoc -Thtml -Wwarning,stop \
-O 'style=/mandoc.css,man=/man/%N.%S.html;https://man.openbsd.org/%N.%S,includes=/includes/%I.html' \
$< > $@