-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
47 lines (33 loc) · 982 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
38
39
40
41
42
43
44
45
46
47
PREFIX=/usr/local
DESTDIR=
INSTDIR=$(DESTDIR)$(PREFIX)
INSTBIN=$(INSTDIR)/bin
all:
@echo do nothing. try one of the targets:
@echo install-all
@echo install
@echo install-twitter
@echo install-tcli
@echo install-stereomood
@echo install-basm
@echo uninstall
install:
test -d $(INSTDIR) || mkdir -p $(INSTDIR)
test -d $(INSTBIN) || mkdir -p $(INSTBIN)
install -m 0755 OAuth.sh $(INSTBIN)
install-twitter: install
install -m 0755 TwitterOAuth.sh $(INSTBIN)
install-tcli: install-twitter
install -m 0755 tcli.sh $(INSTBIN)
install-stereomood: install
install -m 0755 StereomoodOAuth.sh $(INSTBIN)
install-basm: install-stereomood
install -m 0755 Basm.sh $(INSTBIN)
install-all: install-tcli install-basm
uninstall:
rm -f $(INSTBIN)/OAuth.sh
rm -f $(INSTBIN)/TwitterOAuth.sh
rm -f $(INSTBIN)/tcli.sh
rm -f $(INSTBIN)/StereomoodOAuth.sh
rm -f $(INSTBIN)/Basm.sh
.PHONY: all install uninstall install-twitter install-tcli install-stereomood install-basm