annotate libgui/Makefile.am @ 16522:bfff338c56d1

set default terminal font for the GUI from the configure script * configure.ac (DEFAULT_TERMINAL_FONT, DEFAULT_TERMINAL_FONT_SIZE): New variables. Set depending on system type. * common.mk: Substitute them here. (do_subst_qt_settings): New macro. * libgui/default-qt-settings.in: Rename from default-qt-settings. Substitute terminal font and size. * libgui/Makefile.am (EXTRA_DIST): Distribute default-qt-settings.in instead of default-qt-settings. (default-qt-settings): New rule. * run-octave.in (OCTAVE_DEFAULT_QT_SETTINGS): Look in build directory for default-qt-settings file.
author John W. Eaton <jwe@octave.org>
date Tue, 16 Apr 2013 13:10:29 -0400
parents c34f8bb1ebec
children 02a90cb9d79f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15269
b42167e9d805 maint: Update Makefile.am comments to refer to Octave (program) rather than octave (command).
Rik <rik@octave.org>
parents: 15211
diff changeset
1 # Makefile for Octave's libgui directory
b42167e9d805 maint: Update Makefile.am comments to refer to Octave (program) rather than octave (command).
Rik <rik@octave.org>
parents: 15211
diff changeset
2 #
15206
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
3 # Copyright (C) 2012 John W. Eaton
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
4 #
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
5 # This file is part of Octave.
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
6 #
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
7 # Octave is free software; you can redistribute it and/or modify it
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
8 # under the terms of the GNU General Public License as published by the
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
9 # Free Software Foundation; either version 3 of the License, or (at
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
10 # your option) any later version.
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
11 #
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
12 # Octave is distributed in the hope that it will be useful, but WITHOUT
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
15 # for more details.
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
16 #
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
17 # You should have received a copy of the GNU General Public License
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
18 # along with Octave; see the file COPYING. If not, see
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
19 # <http://www.gnu.org/licenses/>.
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
20
15211
efd2024c7d56 fix installation of default-qt-settings file (bug #37161)
John W. Eaton <jwe@octave.org>
parents: 15206
diff changeset
21 include $(top_srcdir)/build-aux/common.mk
efd2024c7d56 fix installation of default-qt-settings file (bug #37161)
John W. Eaton <jwe@octave.org>
parents: 15206
diff changeset
22
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
23 AUTOMAKE_OPTIONS = subdir-objects
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
24
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
25 MOC_CPPFLAGS =
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
26
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
27 octlib_LTLIBRARIES = liboctgui.la
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
28
16341
c34f8bb1ebec build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents: 16328
diff changeset
29 TRANSLATIONS = \
16328
ba933118869b build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents: 16327
diff changeset
30 languages/be_BY.ts \
ba933118869b build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents: 16327
diff changeset
31 languages/de_DE.ts \
ba933118869b build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents: 16327
diff changeset
32 languages/en_US.ts \
ba933118869b build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents: 16327
diff changeset
33 languages/es_ES.ts \
ba933118869b build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents: 16327
diff changeset
34 languages/nl_NL.ts \
ba933118869b build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents: 16327
diff changeset
35 languages/pt_BR.ts \
ba933118869b build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents: 16327
diff changeset
36 languages/ru_RU.ts \
ba933118869b build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents: 16327
diff changeset
37 languages/uk_UA.ts
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
38
16341
c34f8bb1ebec build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents: 16328
diff changeset
39 LOCALES = $(patsubst languages/%.ts, languages/%.qm, $(TRANSLATIONS))
16328
ba933118869b build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents: 16327
diff changeset
40
16522
bfff338c56d1 set default terminal font for the GUI from the configure script
John W. Eaton <jwe@octave.org>
parents: 16341
diff changeset
41 EXTRA_DIST = default-qt-settings.in $(TRANSLATIONS)
15392
c7fd43f5a89d build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents: 15391
diff changeset
42 CLEANFILES =
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
43
15392
c7fd43f5a89d build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents: 15391
diff changeset
44 BUILT_SOURCES =
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
45
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
46 noinst_HEADERS =
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
47
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
48 noinst_LTLIBRARIES =
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
49
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
50 include src/module.mk
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
51 include qterminal-module.mk
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
52
15392
c7fd43f5a89d build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents: 15391
diff changeset
53 ## liboctgui merely collects a bunch of compiled convenience libraries.
15391
1ddf5772fb1a fix broken libgui build
John W. Eaton <jwe@octave.org>
parents: 15386
diff changeset
54 ## It has no source code itself.
1ddf5772fb1a fix broken libgui build
John W. Eaton <jwe@octave.org>
parents: 15386
diff changeset
55 liboctgui_la_SOURCES =
1ddf5772fb1a fix broken libgui build
John W. Eaton <jwe@octave.org>
parents: 15386
diff changeset
56
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
57 include link-deps.mk
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
58
15392
c7fd43f5a89d build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents: 15391
diff changeset
59 # Dummy C++ source to force C++ linking.
15386
5546fe4dd77f force C++ linking for liboctave and liboctgui
John W. Eaton <jwe@octave.org>
parents: 15363
diff changeset
60 nodist_EXTRA_liboctgui_la_SOURCES = dummy.cc
5546fe4dd77f force C++ linking for liboctave and liboctgui
John W. Eaton <jwe@octave.org>
parents: 15363
diff changeset
61
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
62 liboctgui_la_LIBADD = \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
63 qterminal/libqterminal.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
64 src/libgui-src.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
65 $(top_builddir)/libinterp/liboctinterp.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
66 $(top_builddir)/liboctave/liboctave.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
67 $(LIBOCTGUI_LINK_DEPS)
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
68
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
69 # Increment these as needed and according to the rules in the libtool manual:
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
70 liboctgui_current = 0
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
71 liboctgui_revision = 0
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
72 liboctgui_age = 0
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
73
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
74 liboctgui_version_info = $(liboctgui_current):$(liboctgui_revision):$(liboctgui_age)
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
75
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
76 liboctgui_la_LDFLAGS = \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
77 -version-info $(liboctgui_version_info) \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
78 $(NO_UNDEFINED_LDFLAG) \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
79 -bindir $(bindir) \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
80 $(LIBOCTGUI_LINK_OPTS)
15159
098546e95a5e allow location of default settings file to be configurable
John W. Eaton <jwe@octave.org>
parents: 15110
diff changeset
81
098546e95a5e allow location of default settings file to be configurable
John W. Eaton <jwe@octave.org>
parents: 15110
diff changeset
82 octetc_DATA = default-qt-settings
15199
d0715b430286 fix gui sources missing from dist
John W. Eaton <jwe@octave.org>
parents: 15196
diff changeset
83
16341
c34f8bb1ebec build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents: 16328
diff changeset
84 octlocale_DATA = $(LOCALES)
15971
e27d9b9b71f4 gui: install translation files into $(datadir)/octave/$(version)/locale
Torsten <ttl@justmail.de>
parents: 15596
diff changeset
85
16522
bfff338c56d1 set default terminal font for the GUI from the configure script
John W. Eaton <jwe@octave.org>
parents: 16341
diff changeset
86 default-qt-settings: default-qt-settings.in
bfff338c56d1 set default terminal font for the GUI from the configure script
John W. Eaton <jwe@octave.org>
parents: 16341
diff changeset
87 $(do_subst_qt_settings)
bfff338c56d1 set default terminal font for the GUI from the configure script
John W. Eaton <jwe@octave.org>
parents: 16341
diff changeset
88
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
89 moc-%.cc: %.h
16326
c14ce8995a69 build: Call Qt tools using make variables
Mike Miller <mtmiller@ieee.org>
parents: 16244
diff changeset
90 $(MOC) -o$@ $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(MOC_CPPFLAGS) $(liboctgui_la_CPPFLAGS) $<
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
91
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
92 ui-%.h: %.ui
16326
c14ce8995a69 build: Call Qt tools using make variables
Mike Miller <mtmiller@ieee.org>
parents: 16244
diff changeset
93 $(UIC) -o $@ $<
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
94
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
95 qrc-%.cc: %.qrc
16326
c14ce8995a69 build: Call Qt tools using make variables
Mike Miller <mtmiller@ieee.org>
parents: 16244
diff changeset
96 $(RCC) -o $@ $<
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
97
16244
b74c4e967f76 gui: remove binary language files from repo and generate them during build
Torsten <ttl@justmail.de>
parents: 16234
diff changeset
98 %.qm: %.ts
16327
c69c51983626 build: generate GUI language files in the build directory
Mike Miller <mtmiller@ieee.org>
parents: 16326
diff changeset
99 $(MKDIR_P) languages
c69c51983626 build: generate GUI language files in the build directory
Mike Miller <mtmiller@ieee.org>
parents: 16326
diff changeset
100 $(LRELEASE) -qm $@ $<
16341
c34f8bb1ebec build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents: 16328
diff changeset
101
c34f8bb1ebec build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents: 16328
diff changeset
102 DISTCLEANFILES = \
c34f8bb1ebec build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents: 16328
diff changeset
103 $(LOCALES)
c34f8bb1ebec build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents: 16328
diff changeset
104