Mercurial > octave-nkf
annotate libgui/module.mk @ 20361:8ef616eec739
eliminate recursive make invocation in libgui directory tree
* libgui/module.mk: New file created from libgui/Makefile.am.
* libgui/Makefile.am: Delete.
* configure.ac (AC_CONFIG_FILES): Remove libgui/Makefile from the list.
* Makefile.am (octlocale_DATA, octlib_LTLIBRARIES,
noinst_LTLIBRARIES): Initialize variables here.
Include libgui/module.mk and libgui/link-deps.mk.
(SUBDIRS): Remove libgui from the list.
* src/module.mk: Don't include libgui/link-deps.mk.
* libgui/graphics/module.mk, libgui/qterminal-module.mk,
libgui/src/module.mk: Adapt for non-recursive build.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 09 Jul 2015 13:55:58 -0400 |
parents | |
children | c3dab5d8e6ab |
rev | line source |
---|---|
20361
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 MOC_CPPFLAGS = |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 ## 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
|
4 ## 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
|
5 ## 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
|
6 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
|
7 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 octlib_LTLIBRARIES += libgui/liboctgui.la |
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 TRANSLATIONS = \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 libgui/languages/be_BY.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 libgui/languages/de_DE.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 libgui/languages/en_US.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 libgui/languages/es_ES.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 libgui/languages/fr_FR.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 libgui/languages/it_IT.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 libgui/languages/ja_JP.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 libgui/languages/nl_NL.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 libgui/languages/pt_BR.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 libgui/languages/pt_PT.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 libgui/languages/ru_RU.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 libgui/languages/uk_UA.ts \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 libgui/languages/zh_CN.ts |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 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
|
26 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 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
|
28 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 include libgui/src/module.mk |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 include libgui/graphics/module.mk |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 include libgui/qterminal-module.mk |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 ## 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
|
34 ## It has no source code itself. |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 libgui_liboctgui_la_SOURCES = |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 # 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
|
38 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
|
39 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
40 libgui_liboctgui_la_LIBADD = \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
41 libgui/qterminal/libqterminal.la \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
42 libgui/src/libgui-src.la \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
43 libgui/graphics/libgui-graphics.la \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
44 $(top_builddir)/libinterp/liboctinterp.la \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
45 $(top_builddir)/liboctave/liboctave.la \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
46 $(LIBOCTGUI_LINK_DEPS) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
47 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
48 # 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
|
49 libgui_liboctgui_current = 1 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
50 libgui_liboctgui_revision = 0 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
51 libgui_liboctgui_age = 0 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
52 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
53 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
|
54 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
55 libgui_liboctgui_la_LDFLAGS = \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
56 -version-info $(libgui_liboctgui_version_info) \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
57 $(NO_UNDEFINED_LDFLAG) \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
58 -bindir $(bindir) \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
59 $(LIBOCTGUI_LINK_OPTS) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
60 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
61 octetc_DATA += libgui/default-qt-settings |
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 octlocale_DATA += $(LOCALES) |
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 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
|
66 $(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
|
67 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
68 DIRSTAMP_FILES += \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
69 libgui/$(octave_dirstamp) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
70 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
71 define moc-command |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
72 rm -f $@-t $@ && \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
73 ( echo "#ifdef HAVE_CONFIG_H"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
74 echo "#include <config.h>"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
75 echo "#endif"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
76 $(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
|
77 mv $@-t $@ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
78 endef |
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 define rcc-command |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
81 rm -f $@-t $@ && \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
82 ( echo "#ifdef HAVE_CONFIG_H"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
83 echo "#include <config.h>"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
84 echo "#endif"; \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
85 $(RCC) -name $(@D) $< ) > $@-t && \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
86 mv $@-t $@ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
87 endef |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
88 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
89 moc-%.cc: %.h |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
90 $(AM_V_GEN)$(moc-command) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
91 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
92 ui-%.h: %.ui |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
93 $(AM_V_GEN)$(UIC) -o $@ $< |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
94 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
95 qrc-%.cc: %.qrc |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
96 $(AM_V_GEN)$(rcc-command) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
97 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
98 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
|
99 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
|
100 am__v_lrelease_0 = -silent |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
101 am__v_lrelease_1 = |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
102 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
103 %.qm: %.ts libgui/languages/$(octave_dirstamp) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
104 $(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
|
105 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
106 DIRSTAMP_FILES += \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
107 libgui/languages/$(octave_dirstamp) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
108 |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
109 DISTCLEANFILES += \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
110 libgui/default-qt-settings \ |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
111 $(LOCALES) |
8ef616eec739
eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
112 |