X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fautomake.mk;h=b49423110fcdf6352b36ad85a91a256fa0c17674;hb=01e6062d7ee2222e7ce3f93115b3e3d156d6b800;hp=906679c4e203c823d969601b993c7f4068d808c0;hpb=6e097c89af440da90b43ce90864394c4d0c843d5;p=pspp diff --git a/src/ui/gui/automake.mk b/src/ui/gui/automake.mk index 906679c4e2..b49423110f 100644 --- a/src/ui/gui/automake.mk +++ b/src/ui/gui/automake.mk @@ -1,3 +1,19 @@ +# PSPP - a program for statistical analysis. +# Copyright (C) 2017, 2020 Free Software Foundation, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# ## Process this file with automake to produce Makefile.in -*- makefile -*- UI_FILES = \ @@ -20,6 +36,7 @@ UI_FILES = \ src/ui/gui/frequencies.ui \ src/ui/gui/histogram.ui \ src/ui/gui/indep-samples.ui \ + src/ui/gui/k-independent.ui \ src/ui/gui/k-means.ui \ src/ui/gui/k-related.ui \ src/ui/gui/ks-one-sample.ui \ @@ -64,18 +81,19 @@ EXTRA_DIST += doc/help-pages-list EXTRA_DIST += \ src/ui/gui/memorandum.txt \ - src/ui/gui/gen-dot-desktop.sh \ + src/ui/gui/org.fsf.pspp.metainfo.xml.in \ + src/ui/gui/org.fsf.pspp.desktop.in \ src/ui/gui/marshaller-list \ src/ui/gui/pspplogo.svg src_ui_gui_psppire_CPPFLAGS= if HAVE_GUI -bin_PROGRAMS += src/ui/gui/psppire -noinst_PROGRAMS += src/ui/gui/spreadsheet-test +bin_PROGRAMS += src/ui/gui/psppire +noinst_PROGRAMS += src/ui/gui/spreadsheet-test -src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) $(GTKSOURCEVIEW_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1 -src_ui_gui_spreadsheet_test_CFLAGS = $(GTK_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1 +src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) $(GTKSOURCEVIEW_CFLAGS) $(SPREAD_SHEET_WIDGET_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1 +src_ui_gui_spreadsheet_test_CFLAGS = $(GTK_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1 src_ui_gui_psppire_LDFLAGS = \ @@ -91,13 +109,13 @@ endif src_ui_gui_psppire_LDADD = \ - lib/gtk-contrib/libxpaned.a \ src/ui/libuicommon.la \ src/libpspp.la \ src/libpspp-core.la \ $(GTK_LIBS) \ $(GTHREAD_LIBS) \ $(GTKSOURCEVIEW_LIBS) \ + $(SPREAD_SHEET_WIDGET_LIBS) \ $(CAIRO_LIBS) \ $(LIBINTL) \ $(GSL_LIBS) @@ -213,6 +231,8 @@ src_ui_gui_psppire_SOURCES = \ src/ui/gui/psppire-dialog-action-kmeans.h \ src/ui/gui/psppire-dialog-action-logistic.c \ src/ui/gui/psppire-dialog-action-logistic.h \ + src/ui/gui/psppire-dialog-action-k-independent.c \ + src/ui/gui/psppire-dialog-action-k-independent.h \ src/ui/gui/psppire-dialog-action-k-related.c \ src/ui/gui/psppire-dialog-action-k-related.h \ src/ui/gui/psppire-dialog-action-means.c \ @@ -259,8 +279,6 @@ src_ui_gui_psppire_SOURCES = \ src/ui/gui/psppire-dict.h \ src/ui/gui/psppire-dictview.c \ src/ui/gui/psppire-dictview.h \ - src/ui/gui/psppire-empty-list-store.c \ - src/ui/gui/psppire-empty-list-store.h \ src/ui/gui/psppire-encoding-selector.c \ src/ui/gui/psppire-encoding-selector.h \ src/ui/gui/psppire-format.c \ @@ -293,6 +311,10 @@ src_ui_gui_psppire_SOURCES = \ src/ui/gui/psppire-value-entry.h \ src/ui/gui/psppire-var-ptr.c \ src/ui/gui/psppire-var-ptr.h \ + src/ui/gui/psppire-data-sheet.c \ + src/ui/gui/psppire-data-sheet.h \ + src/ui/gui/psppire-variable-sheet.c \ + src/ui/gui/psppire-variable-sheet.h \ src/ui/gui/psppire-var-sheet-header.h \ src/ui/gui/psppire-var-sheet-header.c \ src/ui/gui/psppire-window.c \ @@ -355,10 +377,15 @@ PHONY += yelp-check AM_CPPFLAGS += -Isrc -src/ui/gui/pspp.desktop: src/ui/gui/gen-dot-desktop.sh $(POFILES) - $(AM_V_GEN)POFILES="$(POFILES)" top_builddir="$(top_builddir)" $(SHELL) $< > $@ +src/ui/gui/org.fsf.pspp.metainfo.xml: src/ui/gui/org.fsf.pspp.metainfo.xml.in $(POFILES) + $(AM_V_GEN)$(MSGFMT) --xml --template $< -o $@ -d $(top_srcdir)/po || \ + $(MSGFMT) -L appdata --xml --template $< -o $@ -d $(top_srcdir)/po -CLEANFILES+=src/ui/gui/pspp.desktop +src/ui/gui/org.fsf.pspp.desktop: src/ui/gui/org.fsf.pspp.desktop.in $(POFILES) + $(AM_V_GEN)$(MSGFMT) --desktop --template $< -o $@ -d $(top_srcdir)/po + +CLEANFILES+=src/ui/gui/org.fsf.pspp.desktop \ + src/ui/gui/org.fsf.pspp.metainfo.xml src/ui/gui/resources.c: src/ui/gui/resources.xml $(AM_V_at)$(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/src/ui/gui --generate-source $< --target=$@,out @@ -374,18 +401,21 @@ src/ui/gui/psppire-marshal.c: src/ui/gui/marshaller-list src/ui/gui/psppire-marshal.h: src/ui/gui/marshaller-list $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=psppire_marshal $? > $@ +mimedir = $(datadir)/mime/packages +mime_DATA = src/ui/gui/pspp.xml +EXTRA_DIST += src/ui/gui/pspp.xml + desktopdir = $(datadir)/applications -desktop_DATA = src/ui/gui/pspp.desktop +desktop_DATA = src/ui/gui/org.fsf.pspp.desktop -appdatadir = $(datadir)/appdata -dist_appdata_DATA = src/ui/gui/pspp.appdata.xml +appdatadir = $(datadir)/metainfo +dist_appdata_DATA = src/ui/gui/org.fsf.pspp.metainfo.xml BUILT_SOURCES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h src/ui/gui/resources.c CLEANFILES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h \ - src/ui/gui/resources.c $(nodist_src_ui_gui_psppire_DATA) + src/ui/gui/resources.c $(nodist_src_ui_gui_psppire_DATA) -include $(top_srcdir)/src/ui/gui/efficient-sheet.mk endif HAVE_GUI #ensure the installcheck passes even if there is no X server available @@ -399,10 +429,10 @@ 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' \ + $(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 $@