Thumbnail file hits. Based on a patch from D Bera
[beagle.git] / epiphany-extension / Makefile.am
blobf5f556860c0205ad511f9aaf04b3f654725531bb
1 # The extension needs to be installed into Epiphany's prefix,
2 # not Beagle's prefix.
4 # Hack to fix distcheck
5 if INSTALL_EPIPHANY_EXTENSION
6 extensiondir = $(EPIPHANY_EXTENSIONS_DIR)
7 else
8 extensiondir = $(libdir)/epiphany/extensions
9 endif
11 extension_LTLIBRARIES = libbeagleextension.la
13 INCLUDES =                              \
14         $(EPIPHANY_DEPENDENCY_CFLAGS)   \
15         -DSHARE_DIR=\"pkgdatadir\"      \
16         -DG_DISABLE_DEPRECATED          \
17         -DGDK_DISABLE_DEPRECATED        \
18         -DGTK_DISABLE_DEPRECATED        \
19         -DGDK_PIXBUF_DISABLE_DEPRECATED \
20         -DGNOME_DISABLE_DEPRECATED
22 libbeagleextension_la_SOURCES =         \
23         ephy-beagle.c                   \
24         ephy-beagle-extension.c         \
25         ephy-beagle-extension.h
27 libbeagleextension_la_LDFLAGS = -module -avoid-version
29 extensionxmldir = $(extensiondir)
30 extensionxml_in_files = beagle.xml.in.in
31 extensionxml_DATA = $(extensionxml_in_files:.xml.in.in=.xml)
33 %.xml: %.xml.in.in $(extension_LTLIBRARIES)
34         sed -e "s|%GETTEXT_PACKAGE%|FIXME|" \
35             -e "s|%LOCALE_DIR%|$(datadir)/locale|" \
36             -e "s|%LIBRARY%|`. ./$(extension_LTLIBRARIES) && echo $$dlname`|" \
37             -e "s|%EXTENSION_DIR%|$(extensiondir)|" \
38         $< > $@
40 CLEANFILES = $(extensionxml_DATA)
41 DISTCLEANFILES = $(extensionxml_DATA)
43 EXTRA_DIST = $(extensionxml_in_files)