]> www.fi.muni.cz Git - evince.git/blob - data/Makefile.am
Evince use it's own icon. Fix for the bug #313392.
[evince.git] / data / Makefile.am
1 @INTLTOOL_DESKTOP_RULE@
2 @INTLTOOL_SCHEMAS_RULE@
3
4 NULL =
5
6 uidir = $(pkgdatadir)
7 ui_DATA =                               \
8         evince-ui.xml                   \
9         evince-toolbar.xml              \
10         hand-open.png                   \
11         $(NULL)
12
13 gladedir = $(pkgdatadir)
14 glade_DATA =                            \
15         evince-password.glade           \
16         evince-properties.glade         \
17         $(NULL)
18
19 DESKTOP_IN_FILES= evince.desktop.in.in
20 DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop)
21
22 desktopdir = $(datadir)/applications
23 desktop_DATA = $(DESKTOP_FILES)
24
25 schema_in_files = evince.schemas.in
26 schemadir = $(GCONF_SCHEMA_FILE_DIR)
27 schema_DATA = $(schema_in_files:.schemas.in=.schemas)
28
29 icon_16dir = $(datadir)/icons/hicolor/16x16/apps
30 icon_16_DATA = evince-16.png
31 icon_22dir = $(datadir)/icons/hicolor/22x22/apps
32 icon_22_DATA = evince-22.png
33 icondir = $(datadir)/icons/hicolor/48x48/apps
34 icon_DATA = evince.png
35 svgicondir = $(datadir)/icons/hicolor/scalable/apps
36 svgicon_DATA = evince.svg
37 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
38
39 install-data-local:
40 if GCONF_SCHEMAS_INSTALL
41         if test -z "$(DESTDIR)" ; then \
42         for p in $(schema_DATA) ; do \
43         GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/data/$$p >&1 > /dev/null; \
44         done \
45         fi
46 endif
47         if test -z "$(DESTDIR)"; then \
48                 echo "Updating Gtk icon cache."; \
49                 $(gtk_update_icon_cache); \
50         else \
51                 echo "*** Icon cache not updated.  After install, run this:"; \
52                 echo "***   $(gtk_update_icon_cache)"; \
53                 fi
54
55 EXTRA_DIST =                            \
56         $(glade_DATA)                   \
57         $(ui_DATA)                      \
58         $(DESKTOP_IN_FILES)             \
59         $(schema_in_files)              \
60         $(icon_16_DATA)                 \
61         $(icon_22_DATA)                 \
62         $(icon_DATA)                    \
63         $(svgicon_DATA)                 \
64         $(NULL)                         
65
66 DISTCLEANFILES = \
67         $(DESKTOP_FILES)        \
68         $(schema_DATA)
69
70