Makefile_insert revision d9d8041bc60abf4af6e64c3ee04d5b79fc596c1e
## Makefile.am fragment sourced by src/Makefile.am.
ink_common_sources += \
extension/dbus/dbus-init.cpp \
extension/dbus/dbus-init.h \
extension/dbus/application-interface.cpp \
extension/dbus/application-interface.h \
extension/dbus/document-interface.cpp \
extension/dbus/document-interface.h
## Slightly concerned about this.
## Would use += but it has to be set first.
BUILT_SOURCES += \
extension/dbus/application-server-glue.h \
extension/dbus/document-server-glue.h \
extension/dbus/document-client-glue.h
# extension/dbus/wrapper/libinkdbus.so.1.0 this probably belongs somewhere else
extension/dbus/application-server-glue.h: extension/dbus/application-interface.xml
dbus-binding-tool --mode=glib-server --output=$@ --prefix=application_interface $^
extension/dbus/document-server-glue.h: extension/dbus/document-interface.xml
dbus-binding-tool --mode=glib-server --output=$@ --prefix=document_interface $^
extension/dbus/document-client-glue.h: extension/dbus/document-interface.xml
dbus-binding-tool --mode=glib-client --output=$@ --prefix=document_interface $^
#extension/dbus/wrapper/libinkdbus.so.1.0: extension/dbus/wrapper/inkscape-dbus-wrapper.c extension/dbus/wrapper/inkscape-dbus-wrapper.h extension/dbus/document-interface.xml
# gcc -fPIC -c extension/dbus/wrapper/inkscape-dbus-wrapper.c -o extension/dbus/wrapper/inkscape-dbus-wrapper.o $(shell pkg-config --cflags --libs glib-2.0 gobject-2.0 dbus-glib-1)
# ld -shared -soname libinkdbus.so.1 -o extension/dbus/wrapper/libinkdbus.so.1.0 -lc extension/dbus/wrapper/inkscape-dbus-wrapper.o
# Dbus service file
servicedir = "/usr/share/dbus-1/services"
service_in_files = extension/dbus/org.inkscape.service.in
service_DATA = $(service_in_files:.service.in=.service)
# Rule to make the service file with bindir expanded
$(service_DATA): $(service_in_files) Makefile
@sed -e "s|bindir|$(prefix)|" $<> $@