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