1 # The extension needs to be installed into Epiphany's prefix,
4 # Hack to fix distcheck
5 if INSTALL_EPIPHANY_EXTENSION
6 extensiondir = $(EPIPHANY_EXTENSIONS_DIR)
8 extensiondir = $(libdir)/epiphany/extensions
11 extension_LTLIBRARIES = libbeagleextension.la
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 = \
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)|" \
40 CLEANFILES = $(extensionxml_DATA)
41 DISTCLEANFILES = $(extensionxml_DATA)
43 EXTRA_DIST = $(extensionxml_in_files)