Makefile: correct target name for manpage

There is no html file being created ever, so trying to rebuild this target
would repeatedly build it from scratch, whether it existed or was up to date or
not. Plus it simply makes no sense to ask `make` for a .html file in order to
get a .1 file.

While we are at it, add a source dependency to rebuild the manpage on updates
to the asciidoc source, thus ensuring the newly corrected target name works as
intended.
This commit is contained in:
Eli Schwartz 2019-07-23 21:10:31 -04:00
parent ae0998586c
commit 9c03fa9c10
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
1 changed files with 3 additions and 3 deletions

View File

@ -12,10 +12,10 @@ endif
.PHONY: install
doc/qutebrowser.1.html:
a2x -f manpage doc/qutebrowser.1.asciidoc
doc/qutebrowser.1: doc/qutebrowser.1.asciidoc
a2x -f manpage $<
install: doc/qutebrowser.1.html
install: doc/qutebrowser.1
$(PYTHON) setup.py install --prefix="$(PREFIX)" --optimize=1 $(SETUPTOOLSOPTS)
install -Dm644 misc/org.qutebrowser.qutebrowser.appdata.xml \
"$(DESTDIR)$(DATADIR)/metainfo/org.qutebrowser.qutebrowser.appdata.xml"