annotate libgui/module.mk @ 23427:48fd5980e29a

Refactor and normalize generated build info source files * Makefile.am (build-info-commands): New macro to generate build info source files containing hg revision. * libgui/module.mk (EXTRA_libgui_liboctgui_la_SOURCES): Delete variable referencing unnecessary dummy source file. (libgui_liboctgui_la_CPPFLAGS, libgui_liboctgui_la_CFLAGS, libgui_liboctgui_la_CXXFLAGS): New compilation variables. (libgui_CLEANFILES, libgui_EXTRA_DIST, nodist_libgui_liboctgui_la_SOURCES, noinst_HEADERS): Include libgui/liboctgui-build-info.* files moved from libgui/src. (libgui/liboctgui-build-info.cc): Redefine rule moved from libgui/src/module.mk using $(build-info-commands). * libgui/src/module.mk (libgui_CLEANFILES, libgui_EXTRA_DIST, nodist_libgui_src_libgui_src_la_SOURCES, noinst_HEADERS): Remove libgui/src/liboctgui-build-info.* files moved to libgui. (libgui/src/liboctgui-build-info.cc): Delete rule. * libinterp/module.mk (libinterp/liboctinterp-build-info.cc): Redefine using $(build-info-commands). * liboctave/module.mk (EXTRA_liboctave_liboctave_la_SOURCES): Delete variable referencing unnecessary dummy source file. (liboctave/liboctave-build-info.cc): Redefine using $(build-info-commands). * src/module.mk (OCTAVE_GUI_CPPFLAGS): Include -I$(srcdir)/libgui in the list. (src/octave-build-info.cc): Redefine using $(build-info-commands). * libgui/liboctgui-build-info.h, libgui/liboctgui-build-info.in.cc: Move from libgui/src. * libgui/.dummy_force_cxx_link.cc, liboctave/.dummy_force_cxx_link.cc: Delete.
author Mike Miller <mtmiller@octave.org>
date Sat, 22 Apr 2017 14:11:40 -0700
parents 0bfdfd5870d7
children 8308417aff1c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
3 libgui_EXTRA_DIST =
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
4
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
5 libgui_CLEANFILES =
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
6 libgui_DISTCLEANFILES =
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
7 libgui_MAINTAINERCLEANFILES =
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
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 octlib_LTLIBRARIES += libgui/liboctgui.la
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 = \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 libgui/languages/be_BY.ts \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 libgui/languages/de_DE.ts \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 libgui/languages/en_US.ts \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 libgui/languages/es_ES.ts \
20521
048f7cda88ea Add Basque translation for the GUI by Ander Aurrekoetxea (bug #46041)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 20383
diff changeset
23 libgui/languages/eu_ES.ts \
20326
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 libgui/languages/fr_FR.ts \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 libgui/languages/it_IT.ts \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 libgui/languages/ja_JP.ts \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 libgui/languages/nl_NL.ts \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 libgui/languages/pt_BR.ts \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 libgui/languages/pt_PT.ts \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 libgui/languages/ru_RU.ts \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 libgui/languages/uk_UA.ts \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 libgui/languages/zh_CN.ts
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 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
35
23427
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
36 noinst_HEADERS += \
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
37 libgui/liboctgui-build-info.h
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
38
20326
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 include libgui/src/module.mk
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 include libgui/graphics/module.mk
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41 include libgui/qterminal-module.mk
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42
23427
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
43 nodist_libgui_liboctgui_la_SOURCES = \
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
44 libgui/liboctgui-build-info.cc
20326
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45
23427
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
46 libgui_liboctgui_la_CPPFLAGS = \
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
47 $(AM_CPPFLAGS) \
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
48 @OCTGUI_DLL_DEFS@ \
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
49 -Ilibgui \
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
50 -I$(srcdir)/libgui
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
51
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
52 libgui_liboctgui_la_CFLAGS = $(AM_CFLAGS) $(WARN_CFLAGS)
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
53
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
54 libgui_liboctgui_la_CXXFLAGS = $(AM_CXXFLAGS) $(WARN_CXXFLAGS)
20326
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56 libgui_liboctgui_la_LIBADD = \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
57 libgui/qterminal/libqterminal.la \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58 libgui/src/libgui-src.la \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59 libgui/graphics/libgui-graphics.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
60 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
61 liboctave/liboctave.la \
20326
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62 $(LIBOCTGUI_LINK_DEPS)
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
63
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64 # Increment these as needed and according to the rules in the libtool manual:
22455
b8eeca55fa81 maint: Bump version number for 4.2.0-rc1.
John W. Eaton <jwe@octave.org>
parents: 22234
diff changeset
65 libgui_liboctgui_current = 2
20326
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
66 libgui_liboctgui_revision = 0
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
67 libgui_liboctgui_age = 0
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
69 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
70
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
71 libgui_liboctgui_la_LDFLAGS = \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
72 -version-info $(libgui_liboctgui_version_info) \
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
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
78 octetc_DATA += libgui/default-qt-settings
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
21398
7e8a410e6124 break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents: 21397
diff changeset
82 libgui/default-qt-settings: libgui/default-qt-settings.in build-aux/mk-default-qt-settings.sh | libgui/$(octave_dirstamp)
21408
43056b877047 build: Create default-qt-settings file (bug #47342).
Rik <rik@octave.org>
parents: 21398
diff changeset
83 $(AM_V_GEN)$(call simple-filter-rule,build-aux/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 += \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
86 libgui/$(octave_dirstamp)
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"; \
22234
66dd260512a4 allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents: 22003
diff changeset
93 $(MOC) $(MOCFLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MOC_OCTAVE_CPPFLAGS) $(MOC_CPPFLAGS) $(libgui_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
20367
6b7c10920dfe make interpreter targets and dirstamp files order-only prerequisites
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
124 %.qm: %.ts | libgui/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 += \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
128 libgui/languages/$(octave_dirstamp)
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
129
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
130 libgui_EXTRA_DIST += \
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
131 $(TRANSLATIONS) \
23427
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
132 libgui/default-qt-settings.in \
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
133 libgui/liboctgui-build-info.in.cc
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
134
20368
2f9119bb3fe5 build: Add EXTRA_DIST files frob libgui/ and test/ to tarball.
Rik <rik@octave.org>
parents: 20367
diff changeset
135 EXTRA_DIST += $(libgui_EXTRA_DIST)
2f9119bb3fe5 build: Add EXTRA_DIST files frob libgui/ and test/ to tarball.
Rik <rik@octave.org>
parents: 20367
diff changeset
136
23427
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
137 libgui_CLEANFILES += \
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
138 libgui/liboctgui-build-info.cc
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
139
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
140 libgui_DISTCLEANFILES += \
20326
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
141 libgui/default-qt-settings \
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
142 $(LOCALES)
8ef616eec739 eliminate recursive make invocation in libgui directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
143
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
144 CLEANFILES += $(libgui_CLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
145 DISTCLEANFILES += $(libgui_DISTCLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
146 MAINTAINERCLEANFILES += $(libgui_MAINTAINERCLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
147
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
148 libgui-clean:
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
149 rm -f $(libgui_CLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
150
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
151 libgui-distclean: libgui-clean
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
152 rm -f $(libgui_DISTCLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
153
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
154 libgui-maintainer-clean: libgui-distclean
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20352
diff changeset
155 rm -f $(libgui_MAINTAINERCLEANFILES)
23427
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
156
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
157 libgui/liboctgui-build-info.cc: libgui/liboctgui-build-info.in.cc HG-ID | libgui/$(octave_dirstamp)
48fd5980e29a Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents: 23421
diff changeset
158 $(AM_V_GEN)$(build-info-commands)
20352
c3dab5d8e6ab allow --disable-gui to work again (bug #45543)
John W. Eaton <jwe@octave.org>
parents: 20326
diff changeset
159 endif