]> www.fi.muni.cz Git - evince.git/blob - thumbnailer/Makefile.am
884f7eef0f1dd155bb1d84f8a736ecbe3f9415df
[evince.git] / thumbnailer / Makefile.am
1 @INTLTOOL_SCHEMAS_RULE@
2
3 NULL=
4
5 INCLUDES=                                       \
6         -DDATADIR=\"$(pkgdatadir)\"             \
7         -I$(top_srcdir)/lib                     \
8         -I$(top_srcdir)/pdf                     \
9         -I$(top_srcdir)/backend                 \
10         -I$(top_srcdir)/shell                   \
11         -DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
12         -DGNOMEICONDIR=\""$(datadir)/pixmaps"\" \
13         $(THUMBNAILER_CFLAGS)                   \
14         $(EVINCE_DISABLE_DEPRECATED)            \
15         $(NULL)
16
17 bin_PROGRAMS=evince-thumbnailer
18
19 evince_thumbnailer_SOURCES=     \
20         evince-thumbnailer.c
21         $(NULL)
22
23 evince_thumbnailer_LDADD=                               \
24         $(THUMBNAILER_LIBS)                             \
25         $(top_builddir)/lib/libev.la                    \
26         $(top_builddir)/shell/libevbackendfactory.la    \
27         $(NULL)
28
29 pixmapdir = $(pkgdatadir)
30 pixmap_DATA = pdf-icon.png
31
32 schema_files = \
33         evince-thumbnailer-dvi.schemas.in  \
34         evince-thumbnailer-djvu.schemas.in \
35         evince-thumbnailer.schemas.in
36
37 schema_DATA = evince-thumbnailer.schemas
38
39 if ENABLE_DJVU
40 schema_DATA += evince-thumbnailer-djvu.schemas
41 endif
42
43 if ENABLE_DVI
44 schema_DATA += evince-thumbnailer-dvi.schemas
45 endif
46
47 schemadir = $(GCONF_SCHEMA_FILE_DIR)
48
49 install-data-local:
50 if GCONF_SCHEMAS_INSTALL
51         if test -z "$(DESTDIR)" ; then \
52         for p in $(schema_DATA) ; do \
53         GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_srcdir)/thumbnailer/$$p >&1 > /dev/null; \
54         done \
55         fi
56 endif
57
58 EXTRA_DIST =            \
59         $(pixmap_DATA)  \
60         $(schema_files)  
61