summaryrefslogtreecommitdiffstats
path: root/Makefile
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
commita5e1a034e691202a980020e40a4fc20bf2f589f6 (patch)
tree7a642cdae885e0eda903af4ba1798bff76f8cfce /Makefile
parente1c48511475c952480e1a36b10bcfd0eea0e3939 (diff)
downloadmandoc-a5e1a034e691202a980020e40a4fc20bf2f589f6.tar.gz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 43a6ccf6..6bd65ed0 100644
--- a/Makefile
+++ b/Makefile
@@ -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' \
$< > $@