+ src/ui/gui/widget-io.c \
+ src/ui/gui/widget-io.h \
+ src/ui/gui/widgets.c \
+ src/ui/gui/widgets.h
+
+nodist_src_ui_gui_psppire_SOURCES = \
+ src/ui/gui/psppire-marshal.c \
+ src/ui/gui/psppire-marshal.h
+
+yelp-check:
+ @if ! yelp --version > /dev/null 2>&1 ; then \
+ echo ; \
+ echo ' The Yelp document viewer does not seem to be installed on the system.' ; \
+ echo ' If Yelp is not available at run time, then the PSPPIRE online reference' ; \
+ echo ' manual will not be available.' ; \
+ echo ' Yelp is available from the GNOME project. ftp://ftp.gnome.org/pub/gnome/sources/yelp' ; \
+ echo ; \
+ fi
+
+PHONY += yelp-check
+
+AM_CPPFLAGS += -Isrc
+
+src/ui/gui/pspp.desktop: src/ui/gui/gen-dot-desktop.sh $(POFILES)
+ POFILES="$(POFILES)" top_builddir="$(top_builddir)" $(SHELL) $< > $@
+
+CLEANFILES+=src/ui/gui/pspp.desktop
+
+src/ui/gui/psppire-marshal.c: src/ui/gui/marshaller-list
+ echo '#include <config.h>' > $@
+ $(GLIB_GENMARSHAL) --body --prefix=psppire_marshal $? >> $@
+
+src/ui/gui/psppire-marshal.h: src/ui/gui/marshaller-list
+ $(GLIB_GENMARSHAL) --header --prefix=psppire_marshal $? > $@
+
+desktopdir = $(datadir)/applications
+desktop_DATA = src/ui/gui/pspp.desktop
+
+BUILT_SOURCES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h
+CLEANFILES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h \
+ $(nodist_src_ui_gui_psppire_DATA)
+endif HAVE_GUI
+
+#ensure the installcheck passes even if there is no X server available
+installcheck-local:
+ DISPLAY=/invalid/port $(MAKE) $(AM_MAKEFLAGS) installcheck-binPROGRAMS
+
+# <gtk/gtk.h> wrapper
+src_ui_gui_psppire_CPPFLAGS = $(AM_CPPFLAGS) -Isrc/ui/gui/include
+BUILT_SOURCES += src/ui/gui/include/gtk/gtk.h
+src/ui/gui/include/gtk/gtk.h: src/ui/gui/include/gtk/gtk.in.h
+ @$(MKDIR_P) src/ui/gui/include/gtk
+ $(AM_V_GEN)rm -f $@-t $@ && \
+ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+ -e 's|@''NEXT_GTK_GTK_H''@|$(NEXT_GTK_GTK_H)|g' \
+ < $(srcdir)/src/ui/gui/include/gtk/gtk.in.h; \
+ } > $@-t && \
+ mv $@-t $@
+CLEANFILES += src/ui/gui/include/gtk/gtk.h
+EXTRA_DIST += src/ui/gui/include/gtk/gtk.in.h