Mercurial > octave-antonio
annotate libgui/Makefile.am @ 20134:57b6e06ed811
maint: update library version numbers for upcoming release
* libgui/Makefile.am (liboctgui_current): Bump to 1.
* libinterp/Makefile.am (liboctinterp_current): Bump to 3.
* liboctave/Makefile.am (liboctave_current): Bump to 3.
* configure.ac (OCTAVE_API_VERSION): Bump to api-v50+.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Sun, 26 Apr 2015 22:36:44 -0400 |
parents | 93348b632f32 |
children |
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 # |
19697
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
19594
diff
changeset
|
3 # Copyright (C) 2012-2015 John W. Eaton |
15206
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 | 23 MOC_CPPFLAGS = |
24 | |
18960
a5add7b660ac
build: Fix compiling GUI on Alpha platforms (bug #42839).
Rik <rik@octave.org>
parents:
18613
diff
changeset
|
25 ## Fix for bug #42839 where -mieee CFLAG option is added to CPPFLAGS by gnulib. |
20036
0e712de0af4d
build: Fix build error with user-supplied CPPFLAGS (bug #44754)
Mike Miller <mtmiller@octave.org>
parents:
19809
diff
changeset
|
26 ## Users may also pass other options in CPPFLAGS that moc does not understand. |
0e712de0af4d
build: Fix build error with user-supplied CPPFLAGS (bug #44754)
Mike Miller <mtmiller@octave.org>
parents:
19809
diff
changeset
|
27 ## Only keep moc-compatible options -Idir, -Dmacro, and -Umacro. |
0e712de0af4d
build: Fix build error with user-supplied CPPFLAGS (bug #44754)
Mike Miller <mtmiller@octave.org>
parents:
19809
diff
changeset
|
28 MOC_OCTAVE_CPPFLAGS = $(filter -I% -D% -U%, $(AM_CPPFLAGS) $(CPPFLAGS)) |
18960
a5add7b660ac
build: Fix compiling GUI on Alpha platforms (bug #42839).
Rik <rik@octave.org>
parents:
18613
diff
changeset
|
29 |
15362 | 30 octlib_LTLIBRARIES = liboctgui.la |
31 | |
16341
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
32 TRANSLATIONS = \ |
16328
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
33 languages/be_BY.ts \ |
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
34 languages/de_DE.ts \ |
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
35 languages/en_US.ts \ |
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
36 languages/es_ES.ts \ |
16835
8c2a9ca624a7
First version of a French translation of the GUI
David Bateman <dbateman@free.fr>
parents:
16577
diff
changeset
|
37 languages/fr_FR.ts \ |
18744
c23e9e29a499
Support for italian language added
mfasi <mogrob.sanit@gmail.com>
parents:
18619
diff
changeset
|
38 languages/it_IT.ts \ |
20059 | 39 languages/ja_JP.ts \ |
16328
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
40 languages/nl_NL.ts \ |
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
41 languages/pt_BR.ts \ |
17835
efbed19b8e04
Add Portuguese (Portugal) translation.
Carnë Draug <carandraug@octave.org>
parents:
17744
diff
changeset
|
42 languages/pt_PT.ts \ |
16328
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
43 languages/ru_RU.ts \ |
18613
ef7bb00d8167
Support for chinese language added (patch #8396 by Jeff Bai)
mfasi <mogrob.sanit@gmail.com>
parents:
17952
diff
changeset
|
44 languages/uk_UA.ts \ |
ef7bb00d8167
Support for chinese language added (patch #8396 by Jeff Bai)
mfasi <mogrob.sanit@gmail.com>
parents:
17952
diff
changeset
|
45 languages/zh_CN.ts |
15362 | 46 |
16341
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
47 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
|
48 |
16522
bfff338c56d1
set default terminal font for the GUI from the configure script
John W. Eaton <jwe@octave.org>
parents:
16341
diff
changeset
|
49 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
|
50 CLEANFILES = |
15362 | 51 |
15392
c7fd43f5a89d
build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents:
15391
diff
changeset
|
52 BUILT_SOURCES = |
15362 | 53 |
54 noinst_HEADERS = | |
55 | |
56 noinst_LTLIBRARIES = | |
57 | |
58 include src/module.mk | |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
17952
diff
changeset
|
59 include graphics/module.mk |
15362 | 60 include qterminal-module.mk |
61 | |
15392
c7fd43f5a89d
build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents:
15391
diff
changeset
|
62 ## liboctgui merely collects a bunch of compiled convenience libraries. |
15391 | 63 ## It has no source code itself. |
19593
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
18960
diff
changeset
|
64 liboctgui_la_SOURCES = |
15391 | 65 |
15362 | 66 include link-deps.mk |
67 | |
15392
c7fd43f5a89d
build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents:
15391
diff
changeset
|
68 # 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
|
69 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
|
70 |
15362 | 71 liboctgui_la_LIBADD = \ |
72 qterminal/libqterminal.la \ | |
73 src/libgui-src.la \ | |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
17952
diff
changeset
|
74 graphics/libgui-graphics.la \ |
15362 | 75 $(top_builddir)/libinterp/liboctinterp.la \ |
76 $(top_builddir)/liboctave/liboctave.la \ | |
77 $(LIBOCTGUI_LINK_DEPS) | |
78 | |
79 # Increment these as needed and according to the rules in the libtool manual: | |
20134
57b6e06ed811
maint: update library version numbers for upcoming release
Mike Miller <mtmiller@octave.org>
parents:
20059
diff
changeset
|
80 liboctgui_current = 1 |
15362 | 81 liboctgui_revision = 0 |
82 liboctgui_age = 0 | |
83 | |
84 liboctgui_version_info = $(liboctgui_current):$(liboctgui_revision):$(liboctgui_age) | |
85 | |
86 liboctgui_la_LDFLAGS = \ | |
87 -version-info $(liboctgui_version_info) \ | |
88 $(NO_UNDEFINED_LDFLAG) \ | |
89 -bindir $(bindir) \ | |
90 $(LIBOCTGUI_LINK_OPTS) | |
15159
098546e95a5e
allow location of default settings file to be configurable
John W. Eaton <jwe@octave.org>
parents:
15110
diff
changeset
|
91 |
098546e95a5e
allow location of default settings file to be configurable
John W. Eaton <jwe@octave.org>
parents:
15110
diff
changeset
|
92 octetc_DATA = default-qt-settings |
15199
d0715b430286
fix gui sources missing from dist
John W. Eaton <jwe@octave.org>
parents:
15196
diff
changeset
|
93 |
16341
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
94 octlocale_DATA = $(LOCALES) |
15971
e27d9b9b71f4
gui: install translation files into $(datadir)/octave/$(version)/locale
Torsten <ttl@justmail.de>
parents:
15596
diff
changeset
|
95 |
16522
bfff338c56d1
set default terminal font for the GUI from the configure script
John W. Eaton <jwe@octave.org>
parents:
16341
diff
changeset
|
96 default-qt-settings: default-qt-settings.in |
19792
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
97 $(AM_V_GEN)$(do_subst_qt_settings) |
16522
bfff338c56d1
set default terminal font for the GUI from the configure script
John W. Eaton <jwe@octave.org>
parents:
16341
diff
changeset
|
98 |
16577
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
99 define moc-command |
19792
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
100 rm -f $@-t $@ && \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
101 ( echo "#ifdef HAVE_CONFIG_H"; \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
102 echo "#include <config.h>"; \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
103 echo "#endif"; \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
104 $(MOC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MOC_OCTAVE_CPPFLAGS) $(MOC_CPPFLAGS) $(liboctgui_la_CPPFLAGS) $< ) > $@-t && \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
105 mv $@-t $@ |
16577
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
106 endef |
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
107 |
17952
96c76878c7c6
Include <config.h> in C++ files generated from resources.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
17835
diff
changeset
|
108 define rcc-command |
19792
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
109 rm -f $@-t $@ && \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
110 ( echo "#ifdef HAVE_CONFIG_H"; \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
111 echo "#include <config.h>"; \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
112 echo "#endif"; \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
113 $(RCC) -name $(@D) $< ) > $@-t && \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
114 mv $@-t $@ |
17952
96c76878c7c6
Include <config.h> in C++ files generated from resources.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
17835
diff
changeset
|
115 endef |
96c76878c7c6
Include <config.h> in C++ files generated from resources.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
17835
diff
changeset
|
116 |
15362 | 117 moc-%.cc: %.h |
19792
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
118 $(AM_V_GEN)$(moc-command) |
15362 | 119 |
120 ui-%.h: %.ui | |
19792
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
121 $(AM_V_GEN)$(UIC) -o $@ $< |
15362 | 122 |
123 qrc-%.cc: %.qrc | |
19792
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
124 $(AM_V_GEN)$(rcc-command) |
15362 | 125 |
19809
fd4a2df4694e
allow lrelease to be silenced
John W. Eaton <jwe@octave.org>
parents:
19792
diff
changeset
|
126 AM_V_lrelease = $(am__v_lrelease_$(V)) |
fd4a2df4694e
allow lrelease to be silenced
John W. Eaton <jwe@octave.org>
parents:
19792
diff
changeset
|
127 am__v_lrelease_ = $(am__v_lrelease_$(AM_DEFAULT_VERBOSITY)) |
fd4a2df4694e
allow lrelease to be silenced
John W. Eaton <jwe@octave.org>
parents:
19792
diff
changeset
|
128 am__v_lrelease_0 = -silent |
fd4a2df4694e
allow lrelease to be silenced
John W. Eaton <jwe@octave.org>
parents:
19792
diff
changeset
|
129 am__v_lrelease_1 = |
fd4a2df4694e
allow lrelease to be silenced
John W. Eaton <jwe@octave.org>
parents:
19792
diff
changeset
|
130 |
16244
b74c4e967f76
gui: remove binary language files from repo and generate them during build
Torsten <ttl@justmail.de>
parents:
16234
diff
changeset
|
131 %.qm: %.ts |
19792
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19697
diff
changeset
|
132 $(AM_V_GEN)$(MKDIR_P) languages && \ |
19809
fd4a2df4694e
allow lrelease to be silenced
John W. Eaton <jwe@octave.org>
parents:
19792
diff
changeset
|
133 $(LRELEASE) $(AM_V_lrelease) -qm $@ $< |
16341
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
134 |
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
135 DISTCLEANFILES = \ |
17381
06b46e67f868
build: Remove generated files so that 'make distcheck' passes.
Rik <rik@octave.org>
parents:
17376
diff
changeset
|
136 default-qt-settings \ |
16341
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
137 $(LOCALES) |
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
138 |