+endif
+endif
+if GIO_VAPI_USES_ARRAYS
+AM_VALAFLAGS += --define=GIO_VAPI_USES_ARRAYS
+endif
+
+EXTRA_DIST = webprovisioning/moonshot.xml $(dbusservice_in_files) \
+ webprovisioning/complex-test.msht webprovisioning/sample.msht \
+ README.webprovisioning README.windows \
+ moonshot-dbus-launch \
+ moonshot-ui.spec \
+ vapi/moonshot-gnome-keyring.vapi libmoonshot/libmoonshot.vapi
+
+noinst_PROGRAMS = \
+ examples/client \
+ examples/service-selection \
+ tests/basic
+
+examples_service_selection_SOURCES = examples/service-selection.c
+examples_service_selection_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
+examples_service_selection_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la $(moonshot_LIBS)
+
+examples_client_SOURCES = examples/client.c
+examples_client_CPPFLAGS = $(libmoonshot_CFLAGS) $(AM_CPPFLAGS)
+examples_client_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la
+
+tests_basic_SOURCES = tests/basic.c
+tests_basic_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
+tests_basic_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la $(moonshot_LIBS)
+
+##if OS_LINUX
+##install-data-hook:
+## "${UPDATE_MIME_DATABASE}" $(datadir)/mime
+## "${UPDATE_DESKTOP_DATABASE}" $(datadir)/applications
+##uninstall-hook:
+## "${UPDATE_MIME_DATABASE}" $(datadir)/mime
+## "${UPDATE_DESKTOP_DATABASE}" $(datadir)/applications
+##endif
+
+if OS_WIN32
+
+## A couple of Windows-specific targets:
+
+## 1. Icons. You must have gnome-icon-theme and gnome-icon-theme-symbolic installed
+## in the install prefix; and ImageMagick installed in c:/tools/ImageMagick. This
+## pulls in the icons required by moonshot and converts svg's to png's (we have
+## no svg support built in to Windows Gtk+ right now).
+
+icons:
+ mkdir -p share/icons
+ cp ${prefix}/share/icons/gnome/48x48/status/avatar-default.png share/icons
+ "${IMAGEMAGICK_CONVERT}" -background none ${prefix}/share/icons/gnome/scalable/actions/edit-clear-symbolic.svg -size 13x13 share/icons/edit-clear-symbolic.png
+ "${IMAGEMAGICK_CONVERT}" -background none ${prefix}/share/icons/gnome/scalable/actions/edit-find-symbolic.svg -size 13x13 share/icons/edit-find-symbolic.png
+
+
+## 2. Installer. You must have the Windows Installer XML toolkit version 3.5
+## installed in its default path. Note that this requires at least .NET
+## runtime with service packs 1 and 2. The installer picks up files from
+## the build prefix and mingw dir; you must change these if you have them
+## in different locations I'm afraid.
+
+installer: moonshot.msi
+
+moonshot.msi: windows/app.wxs windows/config.wxi $(bin_PROGRAMS)
+ "${WIX_CANDLE}" $<
+ "${WIX_LIGHT}" -b ${prefix} -b ${prefix}/mingw -o moonshot.msi app.wixobj
+
+endif
+
+if OS_MACOS
+## Mac-specific targets
+
+## 1. Icons.