diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-22 05:37:22 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-22 05:37:22 +0100 |
commit | 74124ed2492269704f5ae5023f9c7cf600bfe25c (patch) | |
tree | 3feff1ff16411c652ae2fb4e80d4f8fa22875a06 /Makefile | |
parent | update deps list (diff) | |
download | blueshift-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-- | Makefile | 24 |
1 files changed, 20 insertions, 4 deletions
@@ -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 |