-
Notifications
You must be signed in to change notification settings - Fork 111
/
Makefile
37 lines (27 loc) · 624 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: install
install:
cp ./desk /usr/local/bin/desk
.PHONY: uninstall
uninstall:
rm /usr/local/bin/desk
.PHONY: oh-my-zsh
oh-my-zsh:
ln -s $(shell pwd)/shell_plugins/zsh $(HOME)/.oh-my-zsh/custom/plugins/desk
# Test targets
# ------------
.PHONY: dockerbuild
dockerbuild:
docker build -t desk/desk .
SHELL_CMD?=
.PHONY: bash
bash: dockerbuild
docker run -it desk/desk /bin/bash $(SHELL_CMD)
.PHONY: zsh
zsh: dockerbuild
docker run -it desk/desk /usr/bin/zsh $(SHELL_CMD)
.PHONY: fish
fish: dockerbuild
docker run -it desk/desk /usr/bin/fish $(SHELL_CMD)
.PHONY: lint
lint:
shellcheck -e SC2155 desk