summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thumbnailer/Makefile.am16
-rw-r--r--thumbnailer/atril.thumbnailer.in6
2 files changed, 20 insertions, 2 deletions
diff --git a/thumbnailer/Makefile.am b/thumbnailer/Makefile.am
index 776a9c67..9a0b69e6 100644
--- a/thumbnailer/Makefile.am
+++ b/thumbnailer/Makefile.am
@@ -28,6 +28,16 @@ atril_thumbnailer_LDADD = \
$(top_builddir)/libdocument/libatrildocument.la \
$(FRONTEND_LIBS)
+thumbnailerdir = $(datadir)/thumbnailers
+thumbnailer_in_files = atril.thumbnailer.in
+thumbnailer_DATA = $(thumbnailer_in_files:.thumbnailer.in=.thumbnailer)
+
+
+atril.thumbnailer: $(thumbnailer_in_files)
+ $(AM_V_GEN)sed \
+ -e "s|\@ATRIL_MIME_TYPES\@|$(EVINCE_MIME_TYPES)|" \
+ $< > $@
+
schema_files = \
atril-thumbnailer-dvi.schemas.in \
atril-thumbnailer-djvu.schemas.in \
@@ -80,9 +90,11 @@ endif
endif # WITH_MATECONF
EXTRA_DIST = \
- $(schema_files)
+ $(schema_files) \
+ $(thumbnailer_in_files)
DISTCLEANFILES = \
- $(schema_DATA)
+ $(schema_DATA) \
+ $(thumbnailer_DATA)
-include $(top_srcdir)/git.mk
diff --git a/thumbnailer/atril.thumbnailer.in b/thumbnailer/atril.thumbnailer.in
new file mode 100644
index 00000000..0de63f80
--- /dev/null
+++ b/thumbnailer/atril.thumbnailer.in
@@ -0,0 +1,6 @@
+[Thumbnailer Entry]
+TryExec=atril-thumbnailer
+Exec=atril-thumbnailer -s %s %u %o
+MimeType=@ATRIL_MIME_TYPES@
+
+