Mercurial > octave
annotate libgui/module.mk @ 20352:c3dab5d8e6ab
allow --disable-gui to work again (bug #45543)
* libgui/link-deps.mk, libgui/module.mk: Surround contents with
AMCOND_BUILD_BUI conditional.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 15 Jul 2015 15:27:08 -0400 |
parents | 8ef616eec739 |
children | 9b44691a3520 |
rev | line source |
---|---|
20352
c3dab5d8e6ab
allow --disable-gui to work again (bug #45543)
John W. Eaton <jwe@octave.org>
parents:
20326
diff
changeset
|
1 if AMCOND_BUILD_GUI |
c3dab5d8e6ab
allow --disable-gui to work again (bug #45543)
John W. Eaton <jwe@octave.org>
parents:
20326
diff
changeset
|
2 |
20326
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 MOC_CPPFLAGS = |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 ## 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
|
6 ## 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
|
7 ## 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
|
8 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
|
9 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 octlib_LTLIBRARIES += libgui/liboctgui.la |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 TRANSLATIONS = \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 libgui/languages/be_BY.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 libgui/languages/de_DE.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 libgui/languages/en_US.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 libgui/languages/es_ES.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 libgui/languages/fr_FR.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 libgui/languages/it_IT.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 libgui/languages/ja_JP.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 libgui/languages/nl_NL.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 libgui/languages/pt_BR.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 libgui/languages/pt_PT.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 libgui/languages/ru_RU.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 libgui/languages/uk_UA.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 libgui/languages/zh_CN.ts |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 LOCALES = $(patsubst libgui/languages/%.ts, libgui/languages/%.qm, $(TRANSLATIONS)) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 EXTRA_DIST += libgui/default-qt-settings.in $(TRANSLATIONS) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 include libgui/src/module.mk |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 include libgui/graphics/module.mk |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 include libgui/qterminal-module.mk |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 ## liboctgui merely collects a bunch of compiled convenience libraries. |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 ## It has no source code itself. |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 libgui_liboctgui_la_SOURCES = |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
38 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
39 # Dummy C++ source to force C++ linking. |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
40 nodist_EXTRA_libgui_liboctgui_la_SOURCES = dummy.cc |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
41 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
42 libgui_liboctgui_la_LIBADD = \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
43 libgui/qterminal/libqterminal.la \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
44 libgui/src/libgui-src.la \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
45 libgui/graphics/libgui-graphics.la \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
46 $(top_builddir)/libinterp/liboctinterp.la \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
47 $(top_builddir)/liboctave/liboctave.la \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
48 $(LIBOCTGUI_LINK_DEPS) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
49 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
50 # Increment these as needed and according to the rules in the libtool manual: |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
51 libgui_liboctgui_current = 1 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
52 libgui_liboctgui_revision = 0 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
53 libgui_liboctgui_age = 0 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
54 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
55 libgui_liboctgui_version_info = $(libgui_liboctgui_current):$(libgui_liboctgui_revision):$(libgui_liboctgui_age) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
56 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
57 libgui_liboctgui_la_LDFLAGS = \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
58 -version-info $(libgui_liboctgui_version_info) \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
59 $(NO_UNDEFINED_LDFLAG) \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
60 -bindir $(bindir) \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
61 $(LIBOCTGUI_LINK_OPTS) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
62 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
63 octetc_DATA += libgui/default-qt-settings |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
64 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
65 octlocale_DATA += $(LOCALES) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
66 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
67 libgui/default-qt-settings: libgui/default-qt-settings.in libgui/$(octave_dirstamp) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
68 $(AM_V_GEN)$(do_subst_qt_settings) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
69 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
70 DIRSTAMP_FILES += \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
71 libgui/$(octave_dirstamp) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
72 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
73 define moc-command |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
74 rm -f $@-t $@ && \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
75 ( echo "#ifdef HAVE_CONFIG_H"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
76 echo "#include <config.h>"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
77 echo "#endif"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
78 $(MOC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MOC_OCTAVE_CPPFLAGS) $(MOC_CPPFLAGS) $(libgui_liboctgui_la_CPPFLAGS) $< ) > $@-t && \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
79 mv $@-t $@ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
80 endef |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
81 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
82 define rcc-command |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
83 rm -f $@-t $@ && \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
84 ( echo "#ifdef HAVE_CONFIG_H"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
85 echo "#include <config.h>"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
86 echo "#endif"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
87 $(RCC) -name $(@D) $< ) > $@-t && \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
88 mv $@-t $@ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
89 endef |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
90 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
91 moc-%.cc: %.h |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
92 $(AM_V_GEN)$(moc-command) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
93 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
94 ui-%.h: %.ui |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
95 $(AM_V_GEN)$(UIC) -o $@ $< |
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 qrc-%.cc: %.qrc |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
98 $(AM_V_GEN)$(rcc-command) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
99 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
100 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
|
101 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
|
102 am__v_lrelease_0 = -silent |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
103 am__v_lrelease_1 = |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
104 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
105 %.qm: %.ts libgui/languages/$(octave_dirstamp) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
106 $(AM_V_GEN)$(LRELEASE) $(AM_V_lrelease) -qm $@ $< |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
107 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
108 DIRSTAMP_FILES += \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
109 libgui/languages/$(octave_dirstamp) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
110 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
111 DISTCLEANFILES += \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
112 libgui/default-qt-settings \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
113 $(LOCALES) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
114 |
20352
c3dab5d8e6ab
allow --disable-gui to work again (bug #45543)
John W. Eaton <jwe@octave.org>
parents:
20326
diff
changeset
|
115 endif |