Mercurial > octave
annotate libgui/module.mk @ 27646:2ff12b707f60
integrate Qt graphics toolkit in Qt interpreter object
Instead of dynamically loading Qt graphics toolkit, make it an
integral part of the Qt interpreter object. This arrangement allows
us to pass references to both the Octave interpreter and the
base_qobject to the graphics subsystem.
Earlier, I made the Qt graphics system loadable so that it was more
like the fltk and gnuplot versions. But that doesn't really make
sense, as the Qt graphics system requires a Qt application context and
specific support from Octave for callbacks and other things. It can't
really be separated from Octave itself, or the parts of Octave that
are built on Qt, so it might as well be available and initialized any
time that we start a copy of Octave that is using Qt (i.e., not the
strictly "cli" version that doesn't link to the Qt libraries).
* __init_qt__.h, __init_qt__.cc: Delete.
* graphics/module.mk: Update. Create convenience library for
libgraphics instead of __init_qt__.oct file.
* libgui/module.mk (%canon_reldir%_liboctgui_la_LIBADD): Add
libgraphics.la to the list.
* graphics-init.h, graphics-init.cc: New files.
(graphics_init): New function to initialize the graphics system.
* libgui/src/module.mk: Update. Add -I options for libgui/graphics
directories to CPPFLAGS.
* interpreter-qobject.cc (interpreter_qobject::interpreter_qobject):
Call graphics_init to initialize graphics system.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 05 Nov 2019 18:23:20 -0500 |
parents | ea790252d837 |
children | 93f4e5e65fcd |
rev | line source |
---|---|
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21301
diff
changeset
|
1 if AMCOND_BUILD_QT_GUI |
20352
c3dab5d8e6ab
allow --disable-gui to work again (bug #45543)
John W. Eaton <jwe@octave.org>
parents:
20326
diff
changeset
|
2 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
3 %canon_reldir%_EXTRA_DIST = |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20352
diff
changeset
|
4 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
5 %canon_reldir%_CLEANFILES = |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
6 %canon_reldir%_DISTCLEANFILES = |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
7 %canon_reldir%_MAINTAINERCLEANFILES = |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20352
diff
changeset
|
8 |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 MOC_CPPFLAGS = |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 ## Fix for bug #42839 where -mieee CFLAG option is added to CPPFLAGS by gnulib. |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 ## Users may also pass other options in CPPFLAGS that moc does not understand. |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 ## Only keep moc-compatible options -Idir, -Dmacro, and -Umacro. |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 MOC_OCTAVE_CPPFLAGS = $(filter -I% -D% -U%, $(AM_CPPFLAGS) $(CPPFLAGS)) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
16 octlib_LTLIBRARIES += %reldir%/liboctgui.la |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 TRANSLATIONS = \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
19 %reldir%/languages/be_BY.ts \ |
25162
eed5ea70348b
Add new Catalan translation ca_ES.ts.
Avlas <jsardid@gmail.com>
parents:
24097
diff
changeset
|
20 %reldir%/languages/ca_ES.ts \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
21 %reldir%/languages/de_DE.ts \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
22 %reldir%/languages/en_US.ts \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
23 %reldir%/languages/es_ES.ts \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
24 %reldir%/languages/eu_ES.ts \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
25 %reldir%/languages/fr_FR.ts \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
26 %reldir%/languages/it_IT.ts \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
27 %reldir%/languages/ja_JP.ts \ |
26300
ef7f95f89407
updated language files for translation (bug #55279)
Torsten <mttl@mailbox.org>
parents:
25931
diff
changeset
|
28 %reldir%/languages/lt_LT.ts \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
29 %reldir%/languages/nl_NL.ts \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
30 %reldir%/languages/pt_BR.ts \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
31 %reldir%/languages/pt_PT.ts \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
32 %reldir%/languages/ru_RU.ts \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
33 %reldir%/languages/uk_UA.ts \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
34 %reldir%/languages/zh_CN.ts |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
36 LOCALES = $(patsubst %reldir%/languages/%.ts, %reldir%/languages/%.qm, $(TRANSLATIONS)) |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 |
23427
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23421
diff
changeset
|
38 noinst_HEADERS += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
39 %reldir%/liboctgui-build-info.h |
23427
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23421
diff
changeset
|
40 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
41 include %reldir%/src/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
42 include %reldir%/graphics/module.mk |
25594
deb8cb929ee3
move libgui/qterminal-module.mk to libgui/qterminal/module.mk
John W. Eaton <jwe@octave.org>
parents:
25593
diff
changeset
|
43 include %reldir%/qterminal/module.mk |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
44 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
45 nodist_%canon_reldir%_liboctgui_la_SOURCES = \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
46 %reldir%/liboctgui-build-info.cc |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
47 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
48 %canon_reldir%_liboctgui_la_CPPFLAGS = \ |
23427
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23421
diff
changeset
|
49 $(AM_CPPFLAGS) \ |
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23421
diff
changeset
|
50 @OCTGUI_DLL_DEFS@ \ |
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23421
diff
changeset
|
51 -Ilibgui \ |
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23421
diff
changeset
|
52 -I$(srcdir)/libgui |
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23421
diff
changeset
|
53 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
54 %canon_reldir%_liboctgui_la_LIBADD = \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
55 %reldir%/qterminal/libqterminal.la \ |
27646
2ff12b707f60
integrate Qt graphics toolkit in Qt interpreter object
John W. Eaton <jwe@octave.org>
parents:
26613
diff
changeset
|
56 %reldir%/graphics/libgraphics.la \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
57 %reldir%/src/libgui-src.la \ |
21290
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
21023
diff
changeset
|
58 libinterp/liboctinterp.la \ |
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
21023
diff
changeset
|
59 liboctave/liboctave.la \ |
25931
332be8be16eb
dynamically load qt graphics
John W. Eaton <jwe@octave.org>
parents:
25864
diff
changeset
|
60 $(QT_LIBS) |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
61 |
25590
02766a14c461
add info about version numbers in etc/HACKING.md file
John W. Eaton <jwe@octave.org>
parents:
25295
diff
changeset
|
62 ## Increment the following version numbers as needed and according |
02766a14c461
add info about version numbers in etc/HACKING.md file
John W. Eaton <jwe@octave.org>
parents:
25295
diff
changeset
|
63 ## to the rules in the etc/HACKING.md file: |
02766a14c461
add info about version numbers in etc/HACKING.md file
John W. Eaton <jwe@octave.org>
parents:
25295
diff
changeset
|
64 |
26613
ea790252d837
maint: update library version numbers for upcoming version 5 release
Mike Miller <mtmiller@octave.org>
parents:
26300
diff
changeset
|
65 %canon_reldir%_liboctgui_current = 5 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
66 %canon_reldir%_liboctgui_revision = 0 |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
67 %canon_reldir%_liboctgui_age = 0 |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
68 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
69 %canon_reldir%_liboctgui_version_info = $(%canon_reldir%_liboctgui_current):$(%canon_reldir%_liboctgui_revision):$(%canon_reldir%_liboctgui_age) |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
70 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
71 %canon_reldir%_liboctgui_la_LDFLAGS = \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
72 -version-info $(%canon_reldir%_liboctgui_version_info) \ |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
73 $(NO_UNDEFINED_LDFLAG) \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
74 -bindir $(bindir) \ |
20712
4a25c398ffa2
configure option to build with address sanitizer (bugg #46449)
John W. Eaton <jwe@octave.org>
parents:
20521
diff
changeset
|
75 $(LIBOCTGUI_LINK_OPTS) \ |
4a25c398ffa2
configure option to build with address sanitizer (bugg #46449)
John W. Eaton <jwe@octave.org>
parents:
20521
diff
changeset
|
76 $(WARN_LDFLAGS) |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
77 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
78 octetc_DATA += %reldir%/default-qt-settings |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
79 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
80 octlocale_DATA += $(LOCALES) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
81 |
23709
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
82 %reldir%/default-qt-settings: %reldir%/default-qt-settings.in %reldir%/mk-default-qt-settings.sh | %reldir%/$(octave_dirstamp) |
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
83 $(AM_V_GEN)$(call simple-filter-rule,%reldir%/mk-default-qt-settings.sh) |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
84 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
85 DIRSTAMP_FILES += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
86 %reldir%/$(octave_dirstamp) |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
87 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
88 define moc-command |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
89 rm -f $@-t $@ && \ |
21724
aba2e6293dd8
use "#if ..." consistently instead of "#ifdef" and "#ifndef"
John W. Eaton <jwe@octave.org>
parents:
21408
diff
changeset
|
90 ( echo "#if defined (HAVE_CONFIG_H)"; \ |
22003
2d3972b802ff
use consistent style for including config.h in source files
John W. Eaton <jwe@octave.org>
parents:
21724
diff
changeset
|
91 echo '# include "config.h"'; \ |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
92 echo "#endif"; \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
93 $(MOC) $(MOCFLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MOC_OCTAVE_CPPFLAGS) $(MOC_CPPFLAGS) $(%canon_reldir%_liboctgui_la_CPPFLAGS) $< ) > $@-t && \ |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
94 mv $@-t $@ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
95 endef |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
96 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
97 define rcc-command |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
98 rm -f $@-t $@ && \ |
21724
aba2e6293dd8
use "#if ..." consistently instead of "#ifdef" and "#ifndef"
John W. Eaton <jwe@octave.org>
parents:
21408
diff
changeset
|
99 ( echo "#if defined (HAVE_CONFIG_H)"; \ |
22003
2d3972b802ff
use consistent style for including config.h in source files
John W. Eaton <jwe@octave.org>
parents:
21724
diff
changeset
|
100 echo '# include "config.h"'; \ |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
101 echo "#endif"; \ |
21023
ec532a439c6f
rework method of disabling warnings from GCC
John W. Eaton <jwe@octave.org>
parents:
20712
diff
changeset
|
102 echo "// Ignore unused variable warnings in generated code."; \ |
ec532a439c6f
rework method of disabling warnings from GCC
John W. Eaton <jwe@octave.org>
parents:
20712
diff
changeset
|
103 echo "#if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)"; \ |
ec532a439c6f
rework method of disabling warnings from GCC
John W. Eaton <jwe@octave.org>
parents:
20712
diff
changeset
|
104 echo "#pragma GCC diagnostic ignored \"-Wunused-variable\""; \ |
ec532a439c6f
rework method of disabling warnings from GCC
John W. Eaton <jwe@octave.org>
parents:
20712
diff
changeset
|
105 echo "#endif"; \ |
23421
0bfdfd5870d7
Make Qt generated resource files reproducible
Mike Miller <mtmiller@octave.org>
parents:
22455
diff
changeset
|
106 QT_HASH_SEED=0 $(RCC) $(RCCFLAGS) -name $(@D) $< ) > $@-t && \ |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
107 mv $@-t $@ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
108 endef |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
109 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
110 moc-%.cc: %.h |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
111 $(AM_V_GEN)$(moc-command) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
112 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
113 ui-%.h: %.ui |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22003
diff
changeset
|
114 $(AM_V_GEN)$(UIC) $(UICFLAGS) -o $@ $< |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
115 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
116 qrc-%.cc: %.qrc |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
117 $(AM_V_GEN)$(rcc-command) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
118 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
119 AM_V_lrelease = $(am__v_lrelease_$(V)) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
120 am__v_lrelease_ = $(am__v_lrelease_$(AM_DEFAULT_VERBOSITY)) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
121 am__v_lrelease_0 = -silent |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
122 am__v_lrelease_1 = |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
123 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
124 %.qm: %.ts | %reldir%/languages/$(octave_dirstamp) |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22003
diff
changeset
|
125 $(AM_V_GEN)$(LRELEASE) $(LRELEASEFLAGS) $(AM_V_lrelease) -qm $@ $< |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
126 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
127 DIRSTAMP_FILES += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
128 %reldir%/languages/$(octave_dirstamp) |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
129 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
130 %canon_reldir%_EXTRA_DIST += \ |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20352
diff
changeset
|
131 $(TRANSLATIONS) \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
132 %reldir%/default-qt-settings.in \ |
23709
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
133 %reldir%/liboctgui-build-info.in.cc \ |
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
134 %reldir%/mk-default-qt-settings.in.sh |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20352
diff
changeset
|
135 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
136 EXTRA_DIST += $(%canon_reldir%_EXTRA_DIST) |
20368
2f9119bb3fe5
build: Add EXTRA_DIST files frob libgui/ and test/ to tarball.
Rik <rik@octave.org>
parents:
20367
diff
changeset
|
137 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
138 %canon_reldir%_CLEANFILES += \ |
24097
f3b60734ac9b
build: clean generated localization files and default-qt-settings
Mike Miller <mtmiller@octave.org>
parents:
23709
diff
changeset
|
139 $(LOCALES) \ |
f3b60734ac9b
build: clean generated localization files and default-qt-settings
Mike Miller <mtmiller@octave.org>
parents:
23709
diff
changeset
|
140 %reldir%/default-qt-settings \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
141 %reldir%/liboctgui-build-info.cc |
23427
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23421
diff
changeset
|
142 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
143 CLEANFILES += $(%canon_reldir%_CLEANFILES) |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
144 DISTCLEANFILES += $(%canon_reldir%_DISTCLEANFILES) |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
145 MAINTAINERCLEANFILES += $(%canon_reldir%_MAINTAINERCLEANFILES) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20352
diff
changeset
|
146 |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20352
diff
changeset
|
147 libgui-clean: |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
148 rm -f $(%canon_reldir%_CLEANFILES) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20352
diff
changeset
|
149 |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20352
diff
changeset
|
150 libgui-distclean: libgui-clean |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
151 rm -f $(%canon_reldir%_DISTCLEANFILES) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20352
diff
changeset
|
152 |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20352
diff
changeset
|
153 libgui-maintainer-clean: libgui-distclean |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
154 rm -f $(%canon_reldir%_MAINTAINERCLEANFILES) |
23427
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23421
diff
changeset
|
155 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
156 %reldir%/liboctgui-build-info.cc: %reldir%/liboctgui-build-info.in.cc HG-ID | %reldir%/$(octave_dirstamp) |
23427
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23421
diff
changeset
|
157 $(AM_V_GEN)$(build-info-commands) |
23709
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
158 |
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
159 GEN_CONFIG_SHELL += \ |
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
160 %reldir%/mk-default-qt-settings.sh |
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
161 |
20352
c3dab5d8e6ab
allow --disable-gui to work again (bug #45543)
John W. Eaton <jwe@octave.org>
parents:
20326
diff
changeset
|
162 endif |