include $(top_srcdir)/build-aux/automake.mk
include $(top_srcdir)/po/automake.mk
include $(top_srcdir)/lib/automake.mk
-include $(top_srcdir)/doc/automake.mk
include $(top_srcdir)/examples/automake.mk
include $(top_srcdir)/src/automake.mk
include $(top_srcdir)/utilities/automake.mk
include $(top_srcdir)/tests/automake.mk
+include $(top_srcdir)/doc/automake.mk
if WITH_PERL_MODULE
include $(top_srcdir)/perl-module/automake.mk
[AS_HELP_STRING([--without-gui],
[Don't build the PSPPIRE GUI (using GTK+)])],
[], [with_gui=yes])
-AM_CONDITIONAL([HAVE_GUI],
+AM_CONDITIONAL([building_gui],
[test "$with_cairo" != no && test "$with_gui" != "no"])
if test "$with_cairo" != no && test "$with_gui" != "no"; then
PKG_CHECK_MODULES([GTHREAD], [gthread-2.0], [],
doc: $(INFO_DEPS) $(DVIS) $(PDFS) $(PSS) $(HTMLS) $(dist_docbook_DATA)
PHONY += doc
+
+$(top_srcdir)/doc/help-pages-list: $(UI_FILES)
+ $(AM_V_GEN)cat $^ | grep '"help[-_]page"' | \
+ $(SED) -e 's% *<property name="help[-_]page">\([^<]*\)</property>%//*[@id='"'"'\1'"'"']%' \
+ -e 's%#%'"'"']/*[@id='"'"'%g' > $@,tmp
+ test -s $@,tmp
+ mv $@,tmp $@
+
+EXTRA_DIST += doc/help-pages-list
## Process this file with automake to produce Makefile.in -*- makefile -*-
include $(top_srcdir)/src/ui/terminal/automake.mk
-if HAVE_GUI
include $(top_srcdir)/src/ui/gui/automake.mk
-endif
noinst_LTLIBRARIES += src/ui/libuicommon.la
src/ui/gui/var-type-dialog.ui \
src/ui/gui/weight.ui
-
-$(top_srcdir)/doc/help-pages-list: $(UI_FILES)
- $(AM_V_GEN)cat $^ | grep '"help[-_]page"' | \
- $(SED) -e 's% *<property name="help[-_]page">\([^<]*\)</property>%//*[@id='"'"'\1'"'"']%' \
- -e 's%#%'"'"']/*[@id='"'"'%g' > $@,tmp
- test -s $@,tmp
- mv $@,tmp $@
-
-EXTRA_DIST += doc/help-pages-list
-
+if building_gui
EXTRA_DIST += \
src/ui/gui/org.fsf.pspp.metainfo.xml.in \
# EXTRA_pkgLTLIBRARIES if DESTDIR is set. It should not do that.
install-EXTRA_pkgLTLIBRARIES:
true
+
+endif
INSTALL_DATA_HOOKS += install-icons install-ext-icons
UNINSTALL_DATA_HOOKS += uninstall-icons uninstall-ext-icons
-if HAVE_GUI
+if building_gui
nodist_src_ui_gui_psppire_DATA = src/ui/gui/icons/splash.png
src/ui/gui/icons/splash.png: $(top_srcdir)/src/ui/gui/icons/splash-t.png $(top_srcdir)/src/ui/gui/icons/splash-r.png Makefile