forked from igosnusantara/fedorautils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (25 loc) · 1.5 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
36
37
38
39
40
41
42
43
44
# Install Fedy
install-core:
install -dm755 $(DESTDIR)/usr/bin/
install -dm755 $(DESTDIR)/usr/share/fedy/
for f in *; do [[ $$f != "plugins" ]] && cp -pr $$f $(DESTDIR)/usr/share/fedy/; done
install -Dpm 0755 fedy.exec $(DESTDIR)/usr/bin/fedy
install -Dpm 0644 fedy.desktop $(DESTDIR)/usr/share/applications/org.folkswithhats.fedy.desktop
install -Dpm 0644 fedy.appdata.xml $(DESTDIR)/usr/share/appdata/fedy.appdata.xml
install -Dpm 0644 fedy.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/fedy.svg
install -Dpm 0644 fedy-symbolic.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/fedy-symbolic.svg
install -Dpm 0644 run-as-root.policy $(DESTDIR)/usr/share/polkit-1/actions/org.folkswithhats.pkexec.run-as-root.policy
@-if test -z $(DESTDIR); then gtk-update-icon-cache -f -t $(DESTDIR)/usr/share/icons/hicolor; fi
install-plugins:
install -dm755 $(DESTDIR)/usr/share/fedy/plugins
cp -pr plugins/* $(DESTDIR)/usr/share/fedy/plugins/
install: install-core install-plugins
uninstall:
rm -rf $(DESTDIR)/usr/share/fedy/
rm -f $(DESTDIR)/usr/bin/fedy
rm -f $(DESTDIR)/usr/share/applications/org.folkswithhats.fedy.desktop
rm -f $(DESTDIR)/usr/share/appdata/fedy.appdata.xml
rm -f $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/fedy.svg
rm -f $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/fedy-symbolic.svg
rm -f $(DESTDIR)/usr/share/polkit-1/actions/org.folkswithhats.pkexec.run-as-root.policy
@-if test -z $(DESTDIR); then gtk-update-icon-cache -f -t $(DESTDIR)/usr/share/icons/hicolor; fi