]> www.fi.muni.cz Git - evince.git/blob - data/Makefile.am
Take default settings from last document opened
[evince.git] / data / Makefile.am
1 SUBDIRS = icons
2 NULL=
3
4 install-data-local: update-icon-cache
5
6 #
7 # man file
8 #
9
10 man_MANS=evince.1
11
12 #
13 # UI descriptions
14 #
15
16 uidir = $(pkgdatadir)
17 ui_DATA =                               \
18         evince-ui.xml                   \
19         evince-toolbar.xml              \
20         hand-open.png
21
22 if ENABLE_PREVIEWER
23 ui_DATA += evince-previewer-ui.xml
24 endif
25
26 #
27 # Desktop file
28 #
29
30 @INTLTOOL_DESKTOP_RULE@
31
32 DESKTOP_IN_FILES= evince.desktop.in.in
33 DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop)
34
35 desktopdir = $(datadir)/applications
36 desktop_DATA = $(DESKTOP_FILES)
37
38 #
39 # DBus servide file
40 #
41 if ENABLE_DBUS
42 servicedir = $(datadir)/dbus-1/services
43 service_in_files = org.gnome.evince.Daemon.service.in
44 service_DATA = $(service_in_files:.service.in=.service)
45
46 $(service_DATA): $(service_in_files) Makefile
47         $(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
48 endif
49
50 #
51 # GSettings schema
52 #
53
54 # gsettingsschemadir and gschema_compile are defined by the GLIB_GSETTINGS
55 # macro in configure.ac
56 gsettingsschema_in_files = org.gnome.Evince.gschema.xml.in
57 gsettingsschema_DATA = $(gsettingsschema_in_files:.xml.in=.xml)
58 @INTLTOOL_XML_NOMERGE_RULE@
59 # This rule will check your schemas for validity before installation
60 # Uncomment when porting is done
61 # GSETTINGS_CHECK_RULE
62 if GSETTINGS_SCHEMAS_INSTALL
63 install-data-hook:
64         $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --allow-any-name $(DESTDIR)$(gsettingsschemadir) --targetdir=$(DESTDIR)$(gsettingsschemadir)
65 endif
66
67 #
68 # GTK icon cache
69 #
70
71 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
72
73 install-data-hook: update-icon-cache
74 uninstall-hook: update-icon-cache
75
76 update-icon-cache:
77         if test -z "$(DESTDIR)"; then \
78                 echo "Updating Gtk icon cache."; \
79                 $(gtk_update_icon_cache); \
80         else \
81                 echo "*** Icon cache not updated.  After (un)install, run this:"; \
82                 echo "***   $(gtk_update_icon_cache)"; \
83                 fi
84
85
86 #
87 # Extra files to be included in the tarball
88 #
89
90 EXTRA_DIST =                                    \
91         $(ui_DATA)                              \
92         $(DESKTOP_IN_FILES)                     \
93         $(gsettingsschema_in_files)             \
94         org.gnome.evince.Daemon.service.in      \
95         $(man_MANS)                             \
96         evince.ico                              \
97         $(NULL)
98
99 #
100 # Clean up properly
101 #
102
103 DISTCLEANFILES = \
104         $(DESKTOP_FILES)        \
105         $(gsettingsschema_DATA)         \
106         $(service_DATA)
107
108 -include $(top_srcdir)/git.mk