Move definition of UI_FILES out of HAVE_GUI.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 16 Apr 2010 03:39:47 +0000 (20:39 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 16 Apr 2010 03:39:47 +0000 (20:39 -0700)
UI_FILES needs to be defined regardless of whether the GUI is being built,
because the .ui files are needed to generate pspp.pot.  (We don't want
pspp.pot to depend on whether the GUI is configured, either.)

Problem reported by Michel Boaventura <michel.boaventura@gmail.com>.

src/ui/automake.mk
src/ui/gui/automake.mk
src/ui/gui/sheet/automake.mk

index 124380cf48199167ccca16457cdc14cfa5df1d48..a4eeebf11cb48e50b639928d26abad1e2a1b0381 100644 (file)
@@ -1,9 +1,7 @@
 ## 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
index 003437bf2d4654a660b7d0010ac5439699a00d69..d312e16fba4002794553f6d861cd7dc8989e805e 100644 (file)
@@ -2,6 +2,37 @@
 
 include $(top_srcdir)/src/ui/gui/sheet/automake.mk
 
+UI_FILES = \
+       src/ui/gui/correlation.ui \
+       src/ui/gui/crosstabs.ui \
+       src/ui/gui/descriptives.ui \
+       src/ui/gui/examine.ui \
+       src/ui/gui/factor.ui \
+       src/ui/gui/find.ui \
+       src/ui/gui/frequencies.ui \
+       src/ui/gui/oneway.ui \
+       src/ui/gui/psppire.ui \
+       src/ui/gui/rank.ui \
+       src/ui/gui/sort.ui \
+       src/ui/gui/recode.ui \
+       src/ui/gui/regression.ui \
+       src/ui/gui/reliability.ui \
+       src/ui/gui/roc.ui \
+       src/ui/gui/t-test.ui \
+       src/ui/gui/text-data-import.ui \
+       src/ui/gui/var-sheet-dialogs.ui \
+       src/ui/gui/variable-info.ui \
+       src/ui/gui/data-editor.glade \
+       src/ui/gui/output-viewer.glade \
+       src/ui/gui/syntax-editor.glade
+
+EXTRA_DIST += \
+       src/ui/gui/OChangeLog \
+       src/ui/gui/psppicon.png \
+       src/ui/gui/marshaller-list \
+       src/ui/gui/pspp.desktop
+
+if HAVE_GUI
 bin_PROGRAMS += src/ui/gui/psppire 
 
 src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1
@@ -53,32 +84,6 @@ uninstall-icons:
 
 UNINSTALL_DATA_HOOKS += uninstall-icons
 
-
-UI_FILES = \
-       src/ui/gui/correlation.ui \
-       src/ui/gui/crosstabs.ui \
-       src/ui/gui/descriptives.ui \
-       src/ui/gui/examine.ui \
-       src/ui/gui/factor.ui \
-       src/ui/gui/find.ui \
-       src/ui/gui/frequencies.ui \
-       src/ui/gui/oneway.ui \
-       src/ui/gui/psppire.ui \
-       src/ui/gui/rank.ui \
-       src/ui/gui/sort.ui \
-       src/ui/gui/recode.ui \
-       src/ui/gui/regression.ui \
-       src/ui/gui/reliability.ui \
-       src/ui/gui/roc.ui \
-       src/ui/gui/t-test.ui \
-       src/ui/gui/text-data-import.ui \
-       src/ui/gui/var-sheet-dialogs.ui \
-       src/ui/gui/variable-info.ui \
-       src/ui/gui/data-editor.glade \
-       src/ui/gui/output-viewer.glade \
-       src/ui/gui/syntax-editor.glade
-
-
 nodist_src_ui_gui_psppire_DATA = \
        $(top_builddir)/src/ui/gui/data-editor.ui \
        $(top_builddir)/src/ui/gui/output-viewer.ui \
@@ -268,13 +273,7 @@ SUFFIXES += .glade .ui
 desktopdir = $(datadir)/applications
 desktop_DATA = src/ui/gui/pspp.desktop
 
-EXTRA_DIST += src/ui/gui/OChangeLog\
-       src/ui/gui/psppicon.png \
-       src/ui/gui/marshaller-list \
-       $(desktop_DATA)
-
 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
index b95de451a1cc03380e1dc38a9b864bc393650bb7..1043a5736b2f0defb62347befc6fe669dc441d1b 100644 (file)
@@ -1,5 +1,6 @@
 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
 
+if HAVE_GUI
 noinst_LTLIBRARIES += src/ui/gui/sheet/libsheet.la
 
 src_ui_gui_sheet_libsheet_la_CFLAGS = $(GTK_CFLAGS)
@@ -9,4 +10,4 @@ src_ui_gui_sheet_libsheet_la_SOURCES = \
        src/ui/gui/sheet/psppire-axis.h \
        src/ui/gui/sheet/psppire-sheetmodel.c \
        src/ui/gui/sheet/psppire-sheetmodel.h
-
+endif