forked from acw/xmonad-log-applet
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile.am
87 lines (73 loc) · 2.65 KB
/
Makefile.am
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
plugindir = $(PLUGIN_DIR)
plugin_PROGRAMS = xmonad-log-applet
xmonad_log_applet_SOURCES = main.c
xmonad_log_applet_CPPFLAGS = \
$(GLIB_CFLAGS) \
$(DBUS_GLIB_CFLAGS) \
$(LIBPANEL_CFLAGS)
xmonad_log_applet_LDADD = \
$(GLIB_LIBS) \
$(DBUS_GLIB_LIBS) \
$(LIBPANEL_LIBS)
appletdir = $(LIBPANEL_APPLET_DIR)
if PANEL_GNOME
applet_files = org.gnome.panel.XmonadLogApplet.panel-applet
$(applet_files): $(applet_files:.panel-applet=.panel-applet.in)
$(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
endif
if PANEL_MATE
applet_files = org.mate.panel.XmonadLogApplet.mate-panel-applet
$(applet_files): $(applet_files:.mate-panel-applet=.mate-panel-applet.in)
$(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
endif
if PANEL_XFCE4
applet_files = xmonad-log-applet.desktop
$(applet_files): $(applet_files:.desktop=.desktop.in)
$(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
endif
applet_DATA = $(applet_files)
if PANEL_GNOME
servicedir = $(SESSION_BUS_SERVICES_DIR)
service_in_files = org.gnome.panel.applet.XmonadLogAppletFactory.service.in
service_DATA = $(service_in_files:.service.in=.service)
org.gnome.panel.applet.XmonadLogAppletFactory.service: $(service_in_files)
$(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
endif
if PANEL_MATE
servicedir = $(SESSION_BUS_SERVICES_DIR)
service_in_files = org.mate.panel.applet.XmonadLogAppletFactory.service.in
service_DATA = $(service_in_files:.service.in=.service)
org.mate.panel.applet.XmonadLogAppletFactory.service: $(service_in_files)
$(SED) -e "s|\@PLUGIN_DIR\@|$(PLUGIN_DIR)|" $< > $@
endif
DISTCLEANFILES = \
$(applet_DATA) \
$(service_DATA)
EXTRA_DIST = \
AUTHORS.md \
LICENSE \
README.md \
xmonad.hs \
xmonad-log-applet48.png \
org.gnome.panel.XmonadLogApplet.panel-applet.in \
org.gnome.panel.applet.XmonadLogAppletFactory.service.in \
org.mate.panel.XmonadLogApplet.mate-panel-applet.in \
org.mate.panel.applet.XmonadLogAppletFactory.service.in \
xmonad-log-applet.desktop.in
gtk_update_icon_cache = gtk-update-icon-cache -f -t
update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache) $(datadir)/icons/hicolor; \
else \
echo "*** Icon cache not updated. After (un)install, run this:"; \
echo "*** $(gtk_update_icon_cache) $(datadir)/icons/hicolor"; \
fi
install-icons:
mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps; \
$(INSTALL_DATA) $(srcdir)/xmonad-log-applet48.png \
$(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/xmonad-log-applet.png;
uninstall-icons:
rm -f $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/xmonad-log-applet.png;
install-data-local: install-icons update-icon-cache
uninstall-local: uninstall-icons update-icon-cache