VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk@ 94234

Last change on this file since 94234 was 94234, checked in by vboxsync, 3 years ago

FE/VBoxManage: Remove the now unused VBoxManageHelp build target and the VBOX_ONLY_DOCS #ifdef's in the code, ​bugref:9186

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 15.7 KB
Line 
1# $Id: Makefile.kmk 94234 2022-03-15 09:19:29Z vboxsync $
2## @file
3# Sub-Makefile for VBoxManage (the CLI frontend).
4#
5
6#
7# Copyright (C) 2006-2022 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21include $(PATH_ROOT)/doc/manual/Config.kmk
22
23
24VBOX_COMMON_VBOXMANAGE_DEFS = \
25 $(if $(VBOX_WITH_AHCI), VBOX_WITH_AHCI) \
26 $(if $(VBOX_WITH_COPYTOGUEST),VBOX_WITH_COPYTOGUEST) \
27 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
28 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL) \
29 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS) \
30 $(if $(VBOX_WITH_HEADLESS), VBOX_WITH_HEADLESS) \
31 $(if $(VBOX_WITH_HGCM), VBOX_WITH_HGCM) \
32 $(if $(VBOX_WITH_HOSTNETIF_API), VBOX_WITH_HOSTNETIF_API) \
33 $(if $(VBOX_WITH_NETFLT), VBOX_WITH_NETFLT) \
34 $(if-expr defined(VBOX_WITH_VMNET) && "$(KBUILD_TARGET)"=="darwin",VBOX_WITH_VMNET,) \
35 $(if $(VBOX_WITH_CLOUD_NET), VBOX_WITH_CLOUD_NET) \
36 $(if $(VBOX_WITH_LIBCURL), VBOX_WITH_PROXY_INFO) \
37 $(if $(VBOX_WITH_AUDIO_OSS), VBOX_WITH_AUDIO_OSS) \
38 $(if $(VBOX_WITH_AUDIO_ALSA), VBOX_WITH_AUDIO_ALSA) \
39 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
40 $(if $(VBOX_WITH_SCSI), VBOX_WITH_SCSI) \
41 $(if $(VBOX_WITH_VBOXSDL), VBOX_WITH_VBOXSDL) \
42 $(if $(VBOX_WITH_VIDEOHWACCEL), VBOX_WITH_VIDEOHWACCEL) \
43 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
44 $(if $(VBOX_WITH_VIRTIO_NET_1_0),VBOX_WITH_VIRTIO_NET_1_0) \
45 $(if $(VBOX_WITH_USB_CARDREADER),VBOX_WITH_USB_CARDREADER) \
46 $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH) \
47 $(if $(VBOX_WITH_RECORDING),VBOX_WITH_RECORDING) \
48 $(if $(VBOX_WITH_AUDIO_RECORDING),VBOX_WITH_AUDIO_RECORDING) \
49 $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE) \
50 $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBOX_WITH_SHARED_CLIPBOARD) \
51 $(if $(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS),VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS) \
52 $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD) \
53 $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL) \
54 $(if $(VBOX_WITH_VMSVGA),VBOX_WITH_VMSVGA) \
55 $(if $(VBOX_WITH_MAIN_NLS),VBOX_WITH_MAIN_NLS) \
56 $(if $(VBOX_WITH_TPM),VBOX_WITH_TPM)
57
58
59ifndef VBOX_ONLY_DOCS
60 PROGRAMS += VBoxManage
61 VBoxManage_TEMPLATE = VBOXMAINCLIENTEXE
62 VBoxManage_DEFS += $(VBOX_COMMON_VBOXMANAGE_DEFS)
63 VBoxManage_DEFS.win = _WIN32_WINNT=0x0500
64 VBoxManage_INCS = \
65 $(VBoxManage_0_OUTDIR) \
66 ../Common
67 VBoxManage_INTERMEDIATES = \
68 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h
69 VBoxManage_SOURCES = \
70 VBoxManage.cpp \
71 VBoxManageUtils.cpp \
72 VBoxInternalManage.cpp \
73 VBoxManageAppliance.cpp \
74 VBoxManageBandwidthControl.cpp \
75 VBoxManageControlVM.cpp \
76 VBoxManageDebugVM.cpp \
77 VBoxManageDHCPServer.cpp \
78 VBoxManageDisk.cpp \
79 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrl.cpp) \
80 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrlListener.cpp) \
81 $(if $(VBOX_WITH_GUEST_PROPS),VBoxManageGuestProp.cpp) \
82 VBoxManageHelp.cpp \
83 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.cpp \
84 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_en_US.cpp \
85 VBoxManageHostonly.cpp \
86 VBoxManageInfo.cpp \
87 VBoxManageList.cpp \
88 VBoxManageMetrics.cpp \
89 VBoxManageMisc.cpp \
90 VBoxManageModifyVM.cpp \
91 VBoxManageModifyNvram.cpp \
92 VBoxManageSnapshot.cpp \
93 VBoxManageStorageController.cpp \
94 VBoxManageUpdateCheck.cpp \
95 VBoxManageUSB.cpp \
96 $(if $(VBOX_WITH_NAT_SERVICE),VBoxManageNATNetwork.cpp,) \
97 $(if $(VBOX_WITH_NAT_SERVICE),../../NetworkServices/NetLib/VBoxNetPortForwardString.cpp,) \
98 VBoxManageCloud.cpp \
99 VBoxManageCloudMachine.cpp \
100 ../Common/PasswordInput.cpp
101 VBoxManage_SOURCES.win = \
102 VBoxManage.rc
103 VBoxManage_LIBS += $(LIB_DDU)
104
105ifdef VBOX_WITH_VBOXMANAGE_NLS
106 VBOX_PATH_VBOXMANAGE_SRC := $(PATH_SUB_CURRENT)
107 include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
108
109 VBoxManage_DEFS += VBOX_WITH_VBOXMANAGE_NLS
110 VBoxManage_INCS += \
111 $(PATH_ROOT)/src/VBox/Main/include
112 VBoxManage_SOURCES += \
113 $(PATH_ROOT)/src/VBox/Main/src-all/VirtualBoxTranslator.cpp \
114 $(PATH_ROOT)/src/VBox/Main/src-all/QMTranslatorImpl.cpp \
115 $(PATH_ROOT)/src/VBox/Main/src-all/GlobalStatusConversion.cpp \
116
117# $(addsuffix /VBoxManageBuiltInHelp.cpp,$(addprefix $(VBoxManage_0_OUTDIR)/,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES)))
118#VBoxManage_INTERMEDIATES += \
119# $(addsuffix /VBoxManageBuiltInHelp.h,$(addprefix $(VBoxManage_0_OUTDIR)/,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES)))
120
121# define qt5 tools for translation
122 USES += qt5
123
124 PROGRAMS += VBoxManageNls
125 VBoxManageNls_TEMPLATE = VBoxNLS
126 VBoxManageNls_QT_TRANSLATIONS = $(addsuffix .ts,$(addprefix $(VBOX_PATH_VBOXMANAGE_SRC)/nls/VBoxManageNls_,$(VBOX_APPROVED_VBOXMANAGE_LANGUAGES)))
127 VBoxManageNls_VBOX_ALL_NLS_SOURCES = $(wildcard \
128 $(VBOX_PATH_VBOXMANAGE_SRC)/*.h\
129 $(VBOX_PATH_VBOXMANAGE_SRC)/*.cpp )
130
131 updatenls:: makeallnls $(VBOX_PATH_VBOXMANAGE_SRC)/nls/VBoxManageNls_en.ts
132
133 makeallnls:: $(VBoxManageNls_VBOX_ALL_NLS_SOURCES)
134 $(call MSG_L1,lupdate all languages (nls/*.ts))
135 $(QUIET)$(TOOL_QT5_LUPDATE) \
136 $^ \
137 -ts \
138 $(filter-out nls/VBoxManageNls_en.ts, $(VBoxManageNls_QT_TRANSLATIONS)) \
139 $(VBOX_PATH_VBOXMANAGE_SRC)/nls/VBoxManageNls_xx_YY.ts
140
141# fake-main-nls:
142# $(foreach file, $(VBoxManageNls_QT_TRANSLATIONS) \
143# ,$(NLTAB)$(SED) -i \
144# -e '/<source>.*<\/source>/h' \
145# -e '/<source>.*<\/source>/p' \
146# -e '/<translation type="unfinished"><\/translation>/{' \
147# -e 'x' \
148# -e 's/<source>\(.*\)<\/source>/<translation type="unfinished">$(notdir $(file)): \1<\/translation>/' \
149# -e '}' \
150# $(file) )
151
152
153# Create the English translation file. This is something special cause it will
154# contain the plural forms only.
155 $(VBOX_PATH_VBOXMANAGE_SRC)/nls/VBoxManageNls_en.ts: $(VBoxManageNls_VBOX_ALL_NLS_SOURCES)
156 $(call MSG_L1,lupdate $@)
157 $(QUIET)$(TOOL_QT5_LUPDATE) \
158 $^ \
159 -ts \
160 "$@"
161 $(QUIET)$(SED) -n -i \
162 -e '/<context>/,/<\/context>/!p' \
163 -e '/<context>/h' \
164 -e '/<name>/H' \
165 -e '/<message numerus="yes">/,/<\/message>/H' \
166 -e '/<\/context>/{H;x;/<message/p}' \
167 "$@"
168
169endif # VBOX_WITH_VBOXMANAGE_NLS
170
171
172 # VBoxNetPortForwardString.h
173 VBoxManageNATNetwork.cpp_INCS += ../../NetworkServices/NetLib/
174
175endif # VBOX_ONLY_DOCS
176
177ifneq ($(KBUILD_TARGET),win)
178 # Workaround for buggy gcc-4.3 compilers, see
179 #
180 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36474
181 #
182 # Some later revisions of version 4.3.1 are known to work so we assume
183 # that version 4.3.2 or later has this bug definitely fixed.
184 VBoxManage_CXXFLAGS.release += \
185 $(if $(VBOX_GCC_VERSION_CXX),$(if-expr $(VBOX_GCC_VERSION_CXX) < 40300 || $(VBOX_GCC_VERSION_CXX) > 40301,,--param max-fields-for-field-sensitive=0),)
186 VBoxManageHelp_CXXFLAGS.release = $(VBoxManage_CXXFLAGS.release)
187endif
188
189
190#
191# VBoxManage built-in help from XML refentry in doc/manual/en_US/.
192#
193$(call KB_FN_DO_PASS0_ON_TARGET,VBoxManage)
194
195## @todo r=klaus the VBoxManage manpage handling currently cannot deal with
196# man_VBoxManage.xml and that's not just removing the - in the patterns. The
197# common options (and the included overview of the command) need to be handled
198# specially to be useful in VBoxManage.
199
200VBoxManage_CLEAN += \
201 $(VBOX_XML_CATALOG) \
202 $(VBOX_XML_CATALOG_DOCBOOK) \
203 $(VBOX_XML_CATALOG_MANUAL) \
204 $(VBOX_XML_ENTITIES) \
205 $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/, $(VBOX_XML_XREF_TO_TEXT) $(VBOX_XML_XREF_TO_TEXT).cat) \
206 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_en_US.cpp \
207 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_en_US.cpp.ts \
208 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.cpp \
209 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.cpp.ts \
210 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h \
211 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h.ts \
212 $(addprefix $(VBoxManage_0_OUTDIR)/,$(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES)))
213
214# Preprocess the xml files, applying remarks.
215$(foreach file,$(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES)) \
216, $(evalcall2 def_vbox_refentry_preprocess_for_manpage,$(VBoxManage_0_OUTDIR),$(file), \
217 $(VBOX_PATH_MANUAL_SRC)/en_US/$(file),replace-xrefs,en_US))
218
219
220##
221# Emits rules for generating cpp files from man pages.
222#
223# $(evalcall2 def_vbox_man_generate_cpp_help)
224# @param 1 Folder with preprocessed man_VBoxManage_* files
225# @param 2 language code.
226define def_vbox_man_generate_cpp_help
227ifneq ($(2),en_US)
228VBOX_DOCBOOK_REFENTRY_TO_C_HELP_$(2) = $(VBOX_PATH_MANUAL_SRC)/$(2)/docbook-refentry-to-C-help.xsl
229else
230VBOX_DOCBOOK_REFENTRY_TO_C_HELP_$(2) = $(VBOX_DOCBOOK_REFENTRY_TO_C_HELP)
231endif
232$$(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_$(2).cpp.ts \
233+| $$(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_$(2).cpp: \
234 $$(VBOX_DOCBOOK_REFENTRY_TO_C_HELP_$(2)) \
235 $$(VBOX_DOCBOOK_REFENTRY_TO_C_HELP) \
236 $$(addprefix $(1)/,$$(filter man_VBoxManage-%,$$(VBOX_MANUAL_XML_REFENTRY_FILES))) \
237 $$(VBOX_XML_CATALOG) $$(VBOX_XML_CATALOG_DOCBOOK) $$(MAKEFILE) | $$$$(dir $$$$@)
238 $$(call MSG_TOOL,xsltproc $$(notdir $$(firstword $$(filter %.xsl,$$^))),,$$(filter %.xml,$$^),$$(patsubst %.ts,%,$$@))
239 $$(QUIET)$$(APPEND) -tn "$$@" \
240 '/* Autogenerated by $$<, do not edit! */' \
241 '' \
242 '#include "VBoxManageBuiltInHelp.h"' \
243 '' \
244 'RT_C_DECLS_BEGIN' \
245 '/* make next variables visible outside the module */' \
246 'extern PCRTMSGREFENTRY g_apHelpEntries_$(2)[];' \
247 'extern const uint32_t g_cHelpEntries_$(2);' \
248 'RT_C_DECLS_END' \
249 '' \
250 $$(foreach refentry,$$(filter %.xml,$$^) \
251 ,$$(NLTAB)$$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$$@") \
252 --path '$(VBOX_PATH_MANUAL_SRC)/$(2) $(VBOX_PATH_MANUAL_SRC)/en_US' $$< $$(refentry))
253 $$(QUIET)$$(APPEND) -n "$$@" \
254 '' \
255 'PCRTMSGREFENTRY g_apHelpEntries_$(2)[] =' \
256 '{'
257 $$(foreach refentry,$$(filter %.xml,$$^) \
258 ,$$(NLTAB)$$(QUIET)$$(APPEND) -n "$$@" \
259 ' &g_$$(subst -,_,$$(tolower $$(patsubst man_%,%,$$(notdir $$(basename $$(refentry)))))),')
260 $$(QUIET)$$(APPEND) -n "$$@" \
261 '};' \
262 '' \
263 'const uint32_t g_cHelpEntries_$(2) = RT_ELEMENTS(g_apHelpEntries_$(2));' \
264 ''
265 $$(QUIET)$$(CP) --changed -- "$$@" "$$(patsubst %.ts,%,$$@)"
266endef
267# The above APPEND stuff trigger some kind of problem on some boxes when not split up...
268# update: Fixed in SVN (strcpy -> memmove in new_job(), job.c - r2591). Just need to rebuild all platforms.
269
270# Generate the .cpp file.
271$(evalcall2 def_vbox_man_generate_cpp_help, $(VBoxManage_0_OUTDIR),en_US)
272
273
274# Generate built-in help for all languages (English is implicit).
275$(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.cpp.ts \
276+| $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.cpp: \
277 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_en_US.cpp \
278 $(foreach lang,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES), $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_$(lang).cpp ) \
279 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h
280 $(QUIET)$(APPEND) -tn "$@" \
281 '/* Autogenerated, do not edit! */' \
282 '' \
283 '#include "VBoxManageBuiltInHelp.h"' \
284 '' \
285 'RT_C_DECLS_BEGIN' \
286 '' \
287 'extern PCRTMSGREFENTRY g_apHelpEntries_en_US[];' \
288 'extern const uint32_t g_cHelpEntries_en_US;'
289ifdef VBOX_WITH_VBOXMANAGE_NLS
290 $(foreach lang,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
291 ,$(NLTAB)$(QUIET)$(APPEND) -n "$@" \
292 '' \
293 'extern PCRTMSGREFENTRY g_apHelpEntries_$(lang)[];' \
294 'extern const uint32_t g_cHelpEntries_$(lang);')
295endif
296 $(QUIET)$(APPEND) -n "$@" \
297 '' \
298 'RT_C_DECLS_END' \
299 '' \
300 'HELP_LANG_ENTRY_T const g_aHelpLangEntries[] = ' \
301 '{' \
302 ' { "en_US", 5, &g_apHelpEntries_en_US[0], &g_cHelpEntries_en_US },'
303ifdef VBOX_WITH_VBOXMANAGE_NLS
304 $(foreach lang,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
305 ,$(NLTAB)$(QUIET)$(APPEND) "$@" ' { "$(lang)", $(length $(lang)), &g_apHelpEntries_$(lang)[0], &g_cHelpEntries_$(lang) },' )
306endif
307 $(QUIET)$(APPEND) -n "$@" \
308 '};' \
309 '' \
310 'uint32_t const g_cHelpLangEntries = RT_ELEMENTS(g_aHelpLangEntries);' \
311 '' \
312 'PCHELP_LANG_ENTRY_T volatile g_pHelpLangEntry = &g_aHelpLangEntries[0];'\
313 ''
314 $(QUIET)$(CP) --changed -- "$@" "$(patsubst %.ts,%,$@)"
315
316
317$(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h.ts \
318+| $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h: \
319 $(VBOX_DOCBOOK_REFENTRY_TO_H_HELP) \
320 $(addprefix $(VBoxManage_0_OUTDIR)/,$(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES))) \
321 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) $(MAKEFILE) | $$(dir $$@)
322 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(filter %.xml,$^),$(patsubst %.ts,%,$@))
323 $(QUIET)$(APPEND) -tn "$@" \
324 '/* Autogenerated by $<, do not edit! */' \
325 '' \
326 '#ifndef ___VBoxManageBuiltInHelp_h___' \
327 '#define ___VBoxManageBuiltInHelp_h___' \
328 '' \
329 '#include <iprt/message.h>' \
330 '#include <iprt/assertcompile.h>' \
331 '' \
332 'RT_C_DECLS_BEGIN' \
333 '' \
334 'typedef enum HELP_CMD_VBOXMANAGE' \
335 '{' \
336 ' HELP_CMD_VBOXMANAGE_INVALID = 0,'
337 $(foreach refentry,$(filter %.xml,$^) \
338 ,$(NLTAB)$(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$@") \
339 --stringparam 'g_sMode' 'cmd' $< $(refentry))
340 $(QUIET)$(APPEND) -n "$@" \
341 ' HELP_CMD_VBOXMANAGE_END' \
342 '} HELP_CMD_VBOXMANAGE;'
343 $(foreach refentry,$(filter %.xml,$^) \
344 ,$(NLTAB)$(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$@") \
345 --stringparam 'g_sMode' 'subcmd' $< $(refentry))
346 $(QUIET)$(APPEND) -n "$@" \
347 '' \
348 'typedef struct HELP_LANG_ENTRY_T' \
349 '{' \
350 ' const char *pszLang;' \
351 ' size_t cchLang;' \
352 ' PCRTMSGREFENTRY *papHelpEntries;' \
353 ' uint32_t const *pcHelpEntries;' \
354 '} HELP_LANG_ENTRY_T;' \
355 'typedef HELP_LANG_ENTRY_T const *PCHELP_LANG_ENTRY_T;' \
356 '' \
357 'extern HELP_LANG_ENTRY_T const g_aHelpLangEntries[];' \
358 'extern const uint32_t g_cHelpLangEntries;' \
359 '' \
360 'extern PCHELP_LANG_ENTRY_T volatile g_pHelpLangEntry;' \
361 '' \
362 'RT_C_DECLS_END' \
363 '' \
364 '#endif' \
365 ''
366 $(QUIET)$(CP) --changed -- "$@" "$(patsubst %.ts,%,$@)"
367
368ifdef VBOX_WITH_VBOXMANAGE_NLS
369 VBoxManage_BLDDIRS += \
370 $(addprefix $(VBoxManage_0_OUTDIR)/,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES))
371
372 VBoxManage_SOURCES += \
373 $(foreach lang, $(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
374 , $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_$(lang).cpp)
375
376 VBoxManage_CLEAN += \
377 $(foreach lang,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES), \
378 $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$(lang)/, \
379 $(VBOX_XML_XREF_TO_TEXT) \
380 $(VBOX_XML_XREF_TO_TEXT).cat \
381 )) \
382 $(addsuffix .cpp,$(addprefix $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES))) \
383 $(addsuffix .cpp.ts,$(addprefix $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES))) \
384 $(foreach file, $(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES)) \
385 , $(addsuffix /$(file),$(addprefix $(VBoxManage_0_OUTDIR)/,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES))))
386
387 # Preprocess the xml files, applying remarks.
388 $(foreach lang, $(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
389 , $(foreach file,$(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES)) \
390 , $(evalcall2 def_vbox_refentry_preprocess_for_manpage,$(VBoxManage_0_OUTDIR)/$(lang),$(file) \
391 ,$(VBOX_PATH_MANUAL_SRC)/$(lang)/$(file),replace-xrefs,$(lang))))
392
393 # Generate the .cpp file.
394 $(foreach lang, $(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
395 , $(evalcall2 def_vbox_man_generate_cpp_help,$(VBoxManage_0_OUTDIR)/$(lang),$(lang)))
396
397 # Ensure $(lang) subfolder in the $(VBOX_PATH_MANUAL_OUTBASE) is created (for section names file)
398 BLDDIRS += $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES))
399
400 # Generate sections names file for $(lang)
401 $(foreach lang, $(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
402 , $(evalcall2 def_vbox_xref_to_text,$(lang)))
403
404endif
405
406include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette