-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtaskwarrior.mk
More file actions
31 lines (26 loc) · 923 Bytes
/
taskwarrior.mk
File metadata and controls
31 lines (26 loc) · 923 Bytes
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
all_targets += taskwarrior
taskwarrior_files = ~/.taskrc ~/.taskwarrior/holidays.rc ~/bin/task-rofi ~/.task/hooks/on-modify.timewarrior
taskwarrior: /usr/bin/task /usr/bin/timew $(taskwarrior_files) rofi
.PHONY: taskwarrior
/usr/bin/task:
cd /tmp && \
rm -rf taskwarrior && \
git clone https://github.com/GothenburgBitFactory/taskwarrior.git --branch=stable && \
cd taskwarrior && \
$(call install,libgnutls28-dev) && \
$(call install,uuid-dev) && \
cmake -DCMAKE_BUILD_TYPE=release . && \
make && \
sudo make install && \
rm -rf /tmp/taskwarrior
/usr/bin/timew:
cd /tmp && \
rm -rf timewarrior && \
git clone --recurse-submodules https://github.com/GothenburgBitFactory/timewarrior.git --branch=stable && \
cd timewarrior && \
cmake -DCMAKE_BUILD_TYPE=release . && \
make && \
sudo make install && \
rm -rf /tmp/timewarrior
$(taskwarrior_files):
$(call homelink,$@)