]> www.fi.muni.cz Git - evince.git/blob - data/Makefile.am
build: Silence the DBUS service file rule
[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
23 if ENABLE_PREVIEWER
24 ui_DATA += evince-previewer-ui.xml
25 endif
26
27 #
28 # Desktop file
29 #
30
31 @INTLTOOL_DESKTOP_RULE@
32
33 DESKTOP_IN_FILES= evince.desktop.in.in
34 DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop)
35
36 desktopdir = $(datadir)/applications
37 desktop_DATA = $(DESKTOP_FILES)
38
39 #
40 # DBus servide file
41 #
42 if ENABLE_DBUS
43 servicedir = $(datadir)/dbus-1/services
44 service_in_files = org.gnome.evince.Daemon.service.in
45 service_DATA = $(service_in_files:.service.in=.service)
46
47 $(service_DATA): $(service_in_files) Makefile
48         $(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
49 endif
50
51 #
52 # GConf schema
53 #
54
55 if WITH_GCONF
56 @INTLTOOL_SCHEMAS_RULE@
57
58 schema_in_files = evince.schemas.in
59 schemadir = $(GCONF_SCHEMA_FILE_DIR)
60 schema_DATA = $(schema_in_files:.schemas.in=.schemas)
61
62 install-schemas: $(schema_DATA)
63 if GCONF_SCHEMAS_INSTALL
64         if test -z "$(DESTDIR)" ; then \
65         for p in $^ ; do \
66                 GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
67                         $(GCONFTOOL) \
68                         --makefile-install-rule \
69                         $(top_builddir)/data/$$p; \
70         done \
71         fi
72 endif
73
74 uninstall-schemas: $(schema_DATA)
75 if GCONF_SCHEMAS_INSTALL
76         if test -z "$(DESTDIR)" ; then \
77         for p in $^ ; do \
78                 GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
79                         $(GCONFTOOL) \
80                         --makefile-uninstall-rule \
81                         $(top_builddir)/data/$$p; \
82         done \
83         fi
84 endif
85
86 else
87
88 install-schemas:
89 uninstall-schemas:
90
91 endif
92
93 #
94 # GTK icon cache
95 #
96
97 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
98
99 install-data-hook: update-icon-cache
100 uninstall-hook: update-icon-cache
101
102 update-icon-cache:
103         if test -z "$(DESTDIR)"; then \
104                 echo "Updating Gtk icon cache."; \
105                 $(gtk_update_icon_cache); \
106         else \
107                 echo "*** Icon cache not updated.  After (un)install, run this:"; \
108                 echo "***   $(gtk_update_icon_cache)"; \
109                 fi
110
111
112 #
113 # Extra files to be included in the tarball
114 #
115
116 EXTRA_DIST =                                    \
117         $(ui_DATA)                              \
118         $(DESKTOP_IN_FILES)                     \
119         $(schema_in_files)                      \
120         org.gnome.evince.Daemon.service.in      \
121         $(man_MANS)                             \
122         $(NULL)
123
124 #
125 # Clean up properly
126 #
127
128 DISTCLEANFILES = \
129         $(DESKTOP_FILES)        \
130         $(schema_DATA)          \
131         $(service_DATA)