-
Notifications
You must be signed in to change notification settings - Fork 99
/
Makefile
35 lines (29 loc) · 1.39 KB
/
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
PREFIX=/usr
BUDGIELIB=lib/budgie-desktop/plugins/budgiesysmonitor
all:
install:
mkdir -p "$(DESTDIR)$(PREFIX)/lib/indicator-sysmonitor"
cp indicator-sysmonitor "$(DESTDIR)$(PREFIX)/lib/indicator-sysmonitor"
cp preferences.py "$(DESTDIR)$(PREFIX)/lib/indicator-sysmonitor"
cp sensors.py "$(DESTDIR)$(PREFIX)/lib/indicator-sysmonitor"
cp preferences.ui "$(DESTDIR)$(PREFIX)/lib/indicator-sysmonitor"
mkdir -p "$(DESTDIR)$(PREFIX)/bin/"
ln -s ../lib/indicator-sysmonitor/indicator-sysmonitor "$(DESTDIR)$(PREFIX)/bin/indicator-sysmonitor"
mkdir -p "$(DESTDIR)$(PREFIX)/share/applications"
cp indicator-sysmonitor.desktop "$(DESTDIR)$(PREFIX)/share/applications/"
installbudgie:
mkdir -p "$(DESTDIR)$(PREFIX)/$(BUDGIELIB)"
cp budgiesysmonitor.py "$(DESTDIR)$(PREFIX)/$(BUDGIELIB)"
cp preferences.py "$(DESTDIR)$(PREFIX)/$(BUDGIELIB)"
cp sensors.py "$(DESTDIR)$(PREFIX)/$(BUDGIELIB)"
cp preferences.ui "$(DESTDIR)$(PREFIX)/$(BUDGIELIB)"
cp BudgieSysMonitor.plugin "$(DESTDIR)$(PREFIX)/$(BUDGIELIB)"
clean:
rm -rf ../*.xz ../*.deb ../*.tar.gz ../*.changes ../*.dsc ../*.upload ../*.build ../*.cdbs-config_list
uninstall:
rm -rf "$(DESTDIR)$(PREFIX)/lib/indicator-sysmonitor"
rm -f "$(DESTDIR)$(PREFIX)/bin/indicator-sysmonitor"
rm -f "$(DESTDIR)$(PREFIX)/share/applications/indicator-sysmonitor.desktop"
rm -rf "$(DESTDIR)$(PREFIX)/$(BUDGIELIB)"
# ~/.indicator-sysmonitor.json
.PHONY: clean install all