-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (31 loc) · 1.22 KB
/
Makefile
File metadata and controls
36 lines (31 loc) · 1.22 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
all:
rm -rf build && mkdir -p build
clang -fPIC -shared panel-plugin/icon.c panel-plugin/processmanager.c panel-plugin/gtkgui.c -o build/libxfce4panel-icon.so \
$$(pkg-config --cflags --libs gtk+-3.0 libxfce4panel-2.0)
run-gui:
rm -rf build && mkdir -p build
clang -DSTANDALONE_GUI panel-plugin/gtkgui.c panel-plugin/processmanager.c -o build/test-gui \
$$(pkg-config --cflags --libs gtk+-3.0 libxfce4panel-2.0) && ./build/test-gui
install:
sudo mkdir -p /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins
sudo mkdir -p /usr/share/xfce4/panel/plugins
sudo mkdir -p /usr/share/polkit-1/actions
sudo cp build/libxfce4panel-icon.so /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/
sudo cp panel-plugin/icon.desktop /usr/share/xfce4/panel/plugins/xfce4panel-icon.desktop
sudo cp com.alpha.processmanager.policy /usr/share/polkit-1/actions/
xfce4-panel -q
sleep 2
xfce4-panel &
clean:
rm -f build/libxfce4panel-icon.so
rm -rf build
check:
xfce4-panel -q
xfce4-panel &
uninstall:
sudo rm -f /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libxfce4panel-icon.so
sudo rm -f /usr/share/xfce4/panel/plugins/xfce4panel-icon.desktop
sudo rm -f /usr/share/polkit-1/actions/com.alpha.processmanager.policy
xfce4-panel -q
sleep 2
xfce4-panel &