diff options
author | Florian Bruhin <git@the-compiler.org> | 2017-11-21 10:35:11 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2017-11-21 10:35:11 +0100 |
commit | dc00bc17746181a3042e7e345558c4a6b724ae93 (patch) | |
tree | bbbb9ad0520417f3c45222222f01d4e3f274d34e /misc/Makefile | |
parent | 273747624fb7273cfc68c82fc2771daf72fbac6f (diff) | |
download | qutebrowser-dc00bc17746181a3042e7e345558c4a6b724ae93.tar.gz qutebrowser-dc00bc17746181a3042e7e345558c4a6b724ae93.zip |
Add an initial Makefile
Diffstat (limited to 'misc/Makefile')
-rw-r--r-- | misc/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile new file mode 100644 index 000000000..fe97eb6bf --- /dev/null +++ b/misc/Makefile @@ -0,0 +1,25 @@ +PYTHON = python3 +DESTDIR = / +ICONSIZES = 16 24 32 48 64 128 256 512 + +.PHONY: install + +doc/qutebrowser.1.html: + a2x -f manpage doc/qutebrowser.1.asciidoc + +install: doc/qutebrowser.1.html + $(PYTHON) setup.py install --root="$(DESTDIR)" --optimize=1 + install -Dm644 doc/qutebrowser.1 \ + "$(DESTDIR)/usr/share/man/man1/qutebrowser.1" + install -Dm644 misc/qutebrowser.desktop \ + "$(DESTDIR)/usr/share/applications/qutebrowser.desktop" + $(foreach i,$(ICONSIZES),install -Dm644 "icons/qutebrowser-$(i)x$(i).png" \ + "$(DESTDIR)/usr/share/icons/hicolor/$(i)x$(i)/apps/qutebrowser.png";) + install -Dm644 icons/qutebrowser.svg \ + "$(DESTDIR)/usr/share/icons/hicolor/scalable/apps/qutebrowser.svg" + install -Dm755 -t "$(DESTDIR)/usr/share/qutebrowser/userscripts/" \ + $(wildcard misc/userscripts/*) + install -Dm755 -t "$(DESTDIR)/usr/share/qutebrowser/scripts/" \ + $(filter-out scripts/__init__.py scripts/__pycache__ scripts/dev \ + scripts/testbrowser_cpp scripts/asciidoc2html.py scripts/setupcommon.py \ + scripts/link_pyqt.py,$(wildcard scripts/*)) |