Updated the wiki snapshot from the official wiki
[geda-gaf/peter-b.git] / gattrib / data / Makefile.am
blob747cea275409bc7da1fb2e5d91445d02cf04467a
1 theme=hicolor
2 xdgdatadir=$(XDGDATADIR)
3 themedir=$(xdgdatadir)/icons/$(theme)
5 app_icon = geda-gattrib
7 app_icon_files = \
8         $(app_icon:%=%-48.png) \
9         $(app_icon:%=%.svg)
10 #       $(app_icon:%=%-16.png)
11 #       $(app_icon:%=%-22.png)
12 #       $(app_icon:%=%-24.png)
13 #       $(app_icon:%=%-32.png)
15 theme_icons = \
16         $(app_icon_files:%=apps,%)
19 desktopdir=$(xdgdatadir)/applications
20 desktop_in_files = geda-gattrib.desktop.in
21 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
23 DOMAIN=geda-gattrib
25 @DESKTOP_I18N_LANGS_RULE@
26 @DESKTOP_I18N_DESKTOP_RULE@
28 install_icon_exec = \
29         $(ICON_THEME_INSTALLER) \
30         -t $(theme) \
31         -s $(srcdir) \
32         -d "x$(DESTDIR)" \
33         -b $(themedir) \
34         -m "$(mkinstalldirs)" \
35         -x "$(INSTALL_DATA)"
37 install-data-local:
38         $(install_icon_exec) -i $(theme_icons)
41 install-data-hook:
42 if ENABLE_UPDATE_XDG_DATABASE
43         $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"
44 endif
46 uninstall-hook:
47 if ENABLE_UPDATE_XDG_DATABASE
48         $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"
49 endif
50         $(install_icon_exec) -u $(theme_icons)
52 MAINTAINERCLEANFILES = *.log core FILE *~ Makefile.in
53 DISTCLEANFILES = $(desktop_DATA)
54 EXTRA_DIST = $(app_icon_files) \
55              $(desktop_in_files) $(desktop_DATA)