summaryrefslogtreecommitdiff
path: root/thumbnailer
diff options
context:
space:
mode:
Diffstat (limited to 'thumbnailer')
-rw-r--r--thumbnailer/Makefile.am10
-rw-r--r--thumbnailer/eom-thumbnailer.thumbnailer.in4
2 files changed, 6 insertions, 8 deletions
diff --git a/thumbnailer/Makefile.am b/thumbnailer/Makefile.am
index 4501ba7..04b56a7 100644
--- a/thumbnailer/Makefile.am
+++ b/thumbnailer/Makefile.am
@@ -1,34 +1,32 @@
NULL =
-bin_PROGRAMS = eom-thumbnailer
+if USE_INTERNAL_THUMBNAILER
+bin_PROGRAMS = eom-thumbnailer
eom_thumbnailer_SOURCES = \
eom-thumbnailer.c \
$(NULL)
-
eom_thumbnailer_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
$(AM_CPPFLAGS) \
$(NULL)
-
eom_thumbnailer_CFLAGS = \
$(THUMBNAILER_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(WARN_CFLAGS) \
$(AM_CFLAGS) \
$(NULL)
-
eom_thumbnailer_LDFLAGS = \
$(AM_LDFLAGS) \
-lm \
$(THUMBNAILER_LIBS) \
$(NULL)
+endif
+
thumbnailerdir = $(datadir)/thumbnailers
thumbnailer_DATA = eom-thumbnailer.thumbnailer
-%.thumbnailer: %.thumbnailer.in
- $(AM_V_GEN) sed -e 's|@bindir[@]|$(bindir)|g' $< > $@
EXTRA_DIST = \
eom-thumbnailer.thumbnailer.in \
diff --git a/thumbnailer/eom-thumbnailer.thumbnailer.in b/thumbnailer/eom-thumbnailer.thumbnailer.in
index 1583b4f..b6412b2 100644
--- a/thumbnailer/eom-thumbnailer.thumbnailer.in
+++ b/thumbnailer/eom-thumbnailer.thumbnailer.in
@@ -1,4 +1,4 @@
[Thumbnailer Entry]
-TryExec=@bindir@/eom-thumbnailer
-Exec=@bindir@/eom-thumbnailer -s %s %u %o
+TryExec=@EOM_THUMBNAILER@
+Exec=@EOM_THUMBNAILER@ -s %s %u %o
MimeType=image/webp;