From e3fb0f3b6a7980f65720366622e1656e5bba26e4 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 23 Jul 2019 21:22:46 -0400 Subject: [PATCH] Makefile: add build and manual target aliases It is now possible to use the standard make && sudo make install routine. --- misc/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/misc/Makefile b/misc/Makefile index d6da9cd87..985541fdd 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -9,12 +9,14 @@ ifdef DESTDIR SETUPTOOLSOPTS = --root="$(DESTDIR)" endif -.PHONY: install +all: man + $(PYTHON) setup.py build +man: doc/qutebrowser.1 doc/qutebrowser.1: doc/qutebrowser.1.asciidoc a2x -f manpage $< -install: doc/qutebrowser.1 +install: man $(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" @@ -32,3 +34,5 @@ install: doc/qutebrowser.1 $(filter-out scripts/__init__.py scripts/__pycache__ scripts/dev \ scripts/testbrowser scripts/asciidoc2html.py scripts/setupcommon.py \ scripts/link_pyqt.py,$(wildcard scripts/*)) + +.PHONY: all man install