-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
93 lines (76 loc) · 2.63 KB
/
Makefile
File metadata and controls
93 lines (76 loc) · 2.63 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# tinytools - scripts to improve your productivity.
# See LICENSE file for copyright and license details.
.POSIX:
BIN_FOLDER=/usr/bin
CONFIG_FOLDER=/etc/tinytools
${BIN_FOLDER}:
@echo "Creating ${BIN_FOLDER} folder ..."
mkdir ${BIN_FOLDER}
${CONFIG_FOLDER}:
@echo "Creating ${CONFIG_FOLDER} folder ..."
mkdir ${CONFIG_FOLDER}
tsearch: ${CONFIG_FOLDER} ${BIN_FOLDER} tyaml
@echo "Installing tsearch..."
install -m 555 tsearch/tsearch ${BIN_FOLDER}
install -m 555 tsearch/dmenu_tsearch ${BIN_FOLDER}
install tsearch/params.yaml ${CONFIG_FOLDER}
@echo "done!"
tgit: ${CONFIG_FOLDER} ${BIN_FOLDER}
@echo "Installing tgit..."
install -m 555 tgit/tgit ${BIN_FOLDER}
install -m 555 tgit/dmenu_tgit ${BIN_FOLDER}
install -m 555 tgit/tgit_status ${BIN_FOLDER}
@echo "done!"
tpomodoro: ${CONFIG_FOLDER} ${BIN_FOLDER}
@echo "Installing tpomodoro..."
install -m 555 tpomodoro/tpomodoro ${BIN_FOLDER}
$(eval notification_folder := /usr/share/sounds/tpomodoro/)
[ -d $(notification_folder) ] || mkdir -p $(notification_folder)
install tpomodoro/Notification.mp3 $(notification_folder)
@echo "done!"
ttodo: ${CONFIG_FOLDER} ${BIN_FOLDER}
@echo "Installing ttodo..."
install -m 555 ttodo/ttodo ${BIN_FOLDER}
install -m 555 ttodo/dmenu_ttodo ${BIN_FOLDER}
@echo "done!"
tmenu: ${CONFIG_FOLDER} ${BIN_FOLDER} tyaml
@echo "Installing tmenu..."
install -m 555 tmenu/tmenu ${BIN_FOLDER}
install tmenu/menu.yaml ${CONFIG_FOLDER}
@echo "done!"
tyaml: ${CONFIG_FOLDER} ${BIN_FOLDER}
@echo "Installing tyaml..."
install -m 555 tyaml/tyaml ${BIN_FOLDER}
@echo "done!"
tnotes: ${CONFIG_FOLDER} ${BIN_FOLDER}
@echo "Installing tnotes..."
install -m 555 tnotes/tnotes ${BIN_FOLDER}
install -m 555 tnotes/dmenu_tnotes ${BIN_FOLDER}
@echo "done!"
tgoeswall: ${CONFIG_FOLDER} ${BIN_FOLDER}
@echo "Installing tgoeswall..."
install -m 555 tgoeswall/tgoeswall ${BIN_FOLDER}
@echo "done!"
tprogbar: ${BIN_FOLDER}
@echo "Installing tprogbar..."
install -m 555 tprogbar/tprogbar ${BIN_FOLDER}
@echo "done!"
uninstall:
@echo "Removing tinytools..."
rm -f ${BIN_FOLDER}/tsearch
rm -f ${BIN_FOLDER}/tsearch-dmenu
rm -f ${BIN_FOLDER}/tpomodoro
rm -fr /usr/share/sounds/tpomodoro/
rm -f ${BIN_FOLDER}/ttodo
rm -f ${BIN_FOLDER}/dmenu_ttodo
rm -f ${BIN_FOLDER}/tmenu
rm -f ${BIN_FOLDER}/tyaml
rm -f ${BIN_FOLDER}/tnotes
rm -f ${BIN_FOLDER}/dmenu_tnotes
rm -f ${BIN_FOLDER}/tgoeswall
rm -fr ${CONFIG_FOLDER}
rm -f ${BIN_FOLDER}/tprogbar
@echo "done!"
install: tsearch ttodo tmenu tyaml tnotes tgoeswall tpomodoro tprogbar tgit
@echo "tinytools installed successfully!"
.PHONY: install tsearch tpomodoro ttodo tmenu tyaml tnotes tgoeswall uninstall tprogbar tgit