]> www.fi.muni.cz Git - evince.git/blob - data/Makefile.am
Updates gtk-update-icon-cache in uninstall-hook.
[evince.git] / data / Makefile.am
1 SUBDIRS = icons
2 NULL=
3
4 install-data-local: install-schemas update-icon-cache
5 uninstall-local: uninstall-schemas
6
7 #
8 # man file
9 #
10
11 man_MANS=evince.1
12
13 #
14 # UI descriptions
15 #
16
17 uidir = $(pkgdatadir)
18 ui_DATA =                               \
19         evince-ui.xml                   \
20         evince-toolbar.xml              \
21         hand-open.png                   \
22         $(NULL)
23
24 #
25 # Glade
26 #
27
28 gladedir = $(pkgdatadir)
29 glade_DATA =                            \
30         evince-password.glade           \
31         evince-properties.glade         \
32         $(NULL)
33
34 #
35 # Desktop file
36 #
37
38 @INTLTOOL_DESKTOP_RULE@
39
40 DESKTOP_IN_FILES= evince.desktop.in.in
41 DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop)
42
43 desktopdir = $(datadir)/applications
44 desktop_DATA = $(DESKTOP_FILES)
45
46
47 #
48 # GConf schema
49 #
50
51 @INTLTOOL_SCHEMAS_RULE@
52
53 schema_in_files = evince.schemas.in
54 schemadir = $(GCONF_SCHEMA_FILE_DIR)
55 schema_DATA = $(schema_in_files:.schemas.in=.schemas)
56
57 install-schemas: $(schema_DATA)
58 if GCONF_SCHEMAS_INSTALL
59         if test -z "$(DESTDIR)" ; then \
60         for p in $^ ; do \
61                 GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
62                         $(GCONFTOOL) \
63                         --makefile-install-rule \
64                         $(top_builddir)/data/$$p; \
65         done \
66         fi
67 endif
68
69 uninstall-schemas: $(schema_DATA)
70 if GCONF_SCHEMAS_INSTALL
71         if test -z "$(DESTDIR)" ; then \
72         for p in $^ ; do \
73                 GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
74                         $(GCONFTOOL) \
75                         --makefile-uninstall-rule \
76                         $(top_builddir)/data/$$p; \
77         done \
78         fi
79 endif
80
81 #
82 # GTK icon cache
83 #
84
85 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
86
87 install-data-hook: update-icon-cache
88 uninstall-hook: update-icon-cache
89
90 update-icon-cache:
91         if test -z "$(DESTDIR)"; then \
92                 echo "Updating Gtk icon cache."; \
93                 $(gtk_update_icon_cache); \
94         else \
95                 echo "*** Icon cache not updated.  After (un)install, run this:"; \
96                 echo "***   $(gtk_update_icon_cache)"; \
97                 fi
98
99
100 #
101 # Extra files to be included in the tarball
102 #
103
104 EXTRA_DIST =                            \
105         $(glade_DATA)                   \
106         $(ui_DATA)                      \
107         $(DESKTOP_IN_FILES)             \
108         $(schema_in_files)              \
109         $(man_MANS)                     \
110         $(NULL)                         
111
112 #
113 # Clean up properly
114 #
115
116 DISTCLEANFILES = \
117         $(DESKTOP_FILES)        \
118         $(schema_DATA)
119
120