aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-22 05:37:22 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-22 05:37:22 +0100
commit74124ed2492269704f5ae5023f9c7cf600bfe25c (patch)
tree3feff1ff16411c652ae2fb4e80d4f8fa22875a06
parentupdate deps list (diff)
downloadblueshift-tray-74124ed2492269704f5ae5023f9c7cf600bfe25c.tar.gz
blueshift-tray-74124ed2492269704f5ae5023f9c7cf600bfe25c.tar.bz2
blueshift-tray-74124ed2492269704f5ae5023f9c7cf600bfe25c.tar.xz
update makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile24
1 files changed, 20 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 15bbe3e..0163504 100644
--- a/Makefile
+++ b/Makefile
@@ -12,19 +12,35 @@ DATADIR ?= $(PREFIX)$(DATA)
LICENSEDIR ?= $(DATADIR)/licenses
LOCALEDIR ?= $(DATADIR)/locale
-SHEBANG ?= /usr/bin/python2
+SHEBANG ?= /usr/bin/env python2
COMMAND ?= blueshift-tray
PKGNAME ?= blueshift-tray
.PHONY: all
-all: bin/blueshift-tray
+all: command shell
+.PHONY: command
+command: bin/blueshift-tray
-bin/blueshift-tray: src/blueshift-tray
+.PHONY: shell
+shell: bash zsh fish
+
+.PHONY: bash
+bash: bin/blueshift-tray.bash
+
+.PHONY: zsh
+zsh: bin/blueshift-tray.zsh
+
+.PHONY: fish
+fish: bin/blueshift-tray.fish
+
+
+bin/blueshift-tray: src/blueshift-tray.py
@mkdir -p bin
cp $< $@
- sed -i '' $@
+ sed -i '/^LOCALEDIR *= /s#^.*$$#LOCALEDIR = '\''$(LOCALEDIR)'\''#' $@
+ sed -i 's:^#!/usr/bin/env python2$$:#!$(SHEBANG):' $@
bin/blueshift-tray.bash: src/completion
@mkdir -p bin