aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-22 05:58:20 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-22 05:58:20 +0100
commit09bb352341d4519179bd462179608a73fecf426d (patch)
treec472bf47e68f5c105452609a894384710ab427bd /Makefile
parentupdate makefile (diff)
downloadblueshift-tray-09bb352341d4519179bd462179608a73fecf426d.tar.gz
blueshift-tray-09bb352341d4519179bd462179608a73fecf426d.tar.bz2
blueshift-tray-09bb352341d4519179bd462179608a73fecf426d.tar.xz
add icons
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 0163504..bf9a0e0 100644
--- a/Makefile
+++ b/Makefile
@@ -11,11 +11,14 @@ BINDIR ?= $(PREFIX)$(BIN)
DATADIR ?= $(PREFIX)$(DATA)
LICENSEDIR ?= $(DATADIR)/licenses
LOCALEDIR ?= $(DATADIR)/locale
+ICONDIR ?= $(DATADIR)/icons
SHEBANG ?= /usr/bin/env python2
COMMAND ?= blueshift-tray
PKGNAME ?= blueshift-tray
+ICONS = blueshift blueshift-on blueshift-off
+
.PHONY: all
all: command shell
@@ -62,9 +65,11 @@ install: install-base install-shell
install-base: install-command install-license
.PHONY: install-command
-install-command: bin/blueshift-tray
+install-command: bin/blueshift-tray $(foreach I,$(ICONS),icons/$(I).svg)
install -dm755 -- "$(DESTDIR)$(BINDIR)"
- install -m755 $< -- "$(DESTDIR)$(BINDIR)/$(COMMAND)"
+ install -m755 bin/blueshift-tray -- "$(DESTDIR)$(BINDIR)/$(COMMAND)"
+ install -dm755 -- "$(DESTDIR)$(ICONDIR)/hicolor/scalable/apps"
+ install -m644 $(foreach I,$(ICONS),icons/$(I).svg) -- "$(DESTDIR)$(ICONDIR)/hicolor/scalable/apps"
.PHONY: install-license
install-license:
@@ -75,17 +80,17 @@ install-license:
install-shell: install-bash install-zsh install-fish
.PHONY: install-bash
-install-bash: bin/blueshift.bash
+install-bash: bin/blueshift-tray.bash
install -dm755 -- "$(DESTDIR)$(DATADIR)/bash-completion/completions"
install -m644 $< -- "$(DESTDIR)$(DATADIR)/bash-completion/completions/$(COMMAND)"
.PHONY: install-zsh
-install-zsh: bin/blueshift.zsh
+install-zsh: bin/blueshift-tray.zsh
install -dm755 -- "$(DESTDIR)$(DATADIR)/zsh/site-functions"
install -m644 $< -- "$(DESTDIR)$(DATADIR)/zsh/site-functions/_$(COMMAND)"
.PHONY: install-fish
-install-fish: bin/blueshift.fish
+install-fish: bin/blueshift-tray.fish
install -dm755 -- "$(DESTDIR)$(DATADIR)/fish/completions"
install -m644 $< -- "$(DESTDIR)$(DATADIR)/fish/completions/$(COMMAND).fish"
@@ -93,6 +98,7 @@ install-fish: bin/blueshift.fish
.PHONY: uninstall
uninstall:
-rm -- "$(DESTDIR)$(BINDIR)/$(COMMAND)"
+ -rm -- $(foreach I,$(ICONS),"$(DESTDIR)$(ICONDIR)/hicolor/scalable/apps/$(I).svg")
-rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING"
-rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE"
-rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)"