tdf#153083 writerfilter: import locale-dependent TOC \t style names
[LibreOffice.git] / Makefile.in
blob321df930b915a2818637438cfd7365b972db191e
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 gb_Top_MODULE_CHECK_TARGETS := slowcheck unitcheck subsequentcheck perfcheck uicheck screenshot
12 .PHONY : check-if-root bootstrap gbuild build build-non-l10n-only build-l10n-only check clean clean-build clean-host test-install distclean distro-pack-install docs download etags fetch get-submodules id install install-gdb-printers install-strip tags debugrun help showmodules translations packageinfo coverage internal.clean $(gb_Top_MODULE_CHECK_TARGETS)
14 MAKECMDGOALS?=build
15 build_goal:=$(if $(filter build uicheck,$(MAKECMDGOALS)),build)\
16 $(if $(filter check,$(MAKECMDGOALS)),unitcheck slowcheck subsequentcheck $(if $(filter Linux, $(shell uname)), uicheck))\
17 $(filter build-l10n-only build-non-l10n-only debugrun help showmodules translations $(gb_Top_MODULE_CHECK_TARGETS) check packageinfo gbuildtojson,$(MAKECMDGOALS))
19 SRCDIR := @SRC_ROOT@
20 BUILDDIR := @BUILDDIR@
21 COMPILER_PLUGINS := @COMPILER_PLUGINS@
22 GIT_BUILD := $(if $(wildcard $(SRCDIR)/.git),T)
24 # Run autogen.sh if needed and force make to restart itself.
25 # ... but there are several cases where we do not want to run
26 # autogen.sh:
27 # 1. if we are building from tarballs, not git checkout (I do not
28 # think packagers would ever want that. I certainly do not.)
29 # 2. if we are making help, clean or distclean, because they do not
30 # need updated configuration
31 ifeq (,$(MAKE_RESTARTS)$(if $(GIT_BUILD),,T)$(if $(filter-out help showmodules clean distclean,$(MAKECMDGOALS)),,T))
33 # note: this must touch both Makefile and $(BUILDDIR)/Makefile, because make
34 # may be invoked using either of these paths, and it will restart itself only
35 # if the updated target is exactly the same path as the Makefile it is using
36 .PHONY : force-restart
37 Makefile $(BUILDDIR)/Makefile: $(BUILDDIR)/config_host.mk $(BUILDDIR)/config_host_lang.mk force-restart
38 @touch $@
40 # run configure in an environment not polluted by config_host.mk
41 $(BUILDDIR)/config_host.mk : $(wildcard \
42 $(SRCDIR)/autogen.sh \
43 $(SRCDIR)/config_host.mk.in \
44 $(SRCDIR)/config_host_lang.mk.in \
45 $(SRCDIR)/Makefile.in \
46 $(SRCDIR)/instsetoo_native/util/openoffice.lst.in \
47 $(SRCDIR)/configure.ac \
48 $(SRCDIR)/config_host/*.h.in \
49 $(SRCDIR)/download.lst \
50 $(SRCDIR)/m4/*.m4 \
51 $(BUILDDIR)/autogen.input \
52 $(BUILDDIR)/autogen.lastrun \
53 ) \
54 $(shell . $(SRCDIR)/bin/get_config_variables JAVA_HOME && \
55 if test -n "$${JAVA_HOME}" -a ! -d "$${JAVA_HOME}/bin"; then echo force-restart; fi)
56 sh -c $(SRCDIR)/autogen.sh
58 else # MAKE_RESTARTS
60 .DEFAULT_GOAL := build
62 # Nested test is to check if the systemd-detect-virt command doesn't exist or it reports we're not
63 # in a container:
64 check-if-root:
65 @if test ! `uname` = 'Haiku' -a `id -u` = 0; then \
66 if test ! -x "$$(command -v systemd-detect-virt)" || ! systemd-detect-virt -c -q; then \
67 echo; \
68 echo 'Building LibreOffice as root is a very bad idea, use a regular user.'; \
69 echo; \
70 exit 1; \
71 fi \
74 gb_Side ?= host
76 include $(BUILDDIR)/config_$(gb_Side).mk
78 export GMAKE_OPTIONS?=-r$(if $(verbose),,s)$(value $(MAKEFLAGS))
80 PARALLELISM_OPTION := $(if $(filter-out 0,$(PARALLELISM)),-j $(PARALLELISM),)
83 # Partial Build
85 define gb_Top_GbuildModuleRules
86 .PHONY: $(1) $(1).build $(1).all $(1).check $(1).clean $(1).showdeliverables $(1).coverage $(foreach target,$(gb_Top_MODULE_CHECK_TARGETS),$(1).$(target))
87 .PHONY: $(1).allbuild $(1).buildall $(1).allcheck $(1).checkall
89 $(1): bootstrap fetch
90 cd $(SRCDIR)/$(2) && $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS)
92 $(1).build $(1).check $(1).coverage $(foreach target,$(gb_Top_MODULE_CHECK_TARGETS),$(1).$(target)): bootstrap fetch
93 cd $(SRCDIR)/$(2) && $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) $$(patsubst $(1).%,%,$$@)
95 $(1).clean $(1).showdeliverables:
96 cd $(SRCDIR)/$(2) && $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) $$(patsubst $(1).%,%,$$@)
98 $(1).allbuild $(1).buildall: bootstrap fetch
99 $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(WORKDIR)/Module/$(1)
101 $(1).allcheck $(1).checkall: bootstrap fetch
102 $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(WORKDIR)/Module/$(1) $(WORKDIR)/Module/check/$(1) $(WORKDIR)/Module/slowcheck/$(1)
104 $(1).all:
105 @echo "'make $(1).all' was renamed to 'make $(1).allcheck' (or use 'make $(1).allbuild' to build without unit tests)"
106 @exit 42
108 endef
110 define gb_Top_GbuildModulesRules
111 $(foreach m,$(1),$(call gb_Top_GbuildModuleRules,$(notdir $(m)),$(m)))
112 endef
114 gbuild_modules := $(patsubst $(SRCDIR)/%/,%,$(dir $(wildcard $(SRCDIR)/*/Module_*.mk $(SRCDIR)/external/*/Module_*.mk)))
116 gbuild_internal_modules := $(filter-out odk external,$(patsubst $(SRCDIR)/%/,%,$(dir $(wildcard $(SRCDIR)/*/Module_*.mk))))
118 internal.clean: $(addsuffix .clean,$(gbuild_internal_modules))
121 $(eval $(call gb_Top_GbuildModulesRules,$(gbuild_modules)))
123 gbuild_TARGETS := AllLangHelp \
124 AllLangMoTarget \
125 AllLangPackage \
126 AutoInstall \
127 CliLibrary \
128 CliNativeLibrary \
129 CliUnoApi \
130 CompilerTest \
131 ComponentTarget \
132 Configuration \
133 CppunitTest \
134 CustomTarget \
135 Dictionary \
136 Executable \
137 Extension \
138 ExtensionPackage \
139 ExtensionPackageSet \
140 ExternalPackage \
141 ExternalProject \
142 Gallery \
143 GeneratedPackage \
144 InstallModule \
145 InstallScript \
146 InternalUnoApi \
147 Jar \
148 JunitTest \
149 Library \
150 Module \
151 Package \
152 PackageSet \
153 Pagein \
154 Postprocess \
155 Pyuno \
156 PythonTest \
157 Rdb \
158 SdiTarget \
159 StaticLibrary \
160 UIConfig \
161 UITest \
162 UnoApi \
163 UnpackedTarball \
164 WinResTarget \
165 Zip \
167 # build a generic gbuild target
168 $(foreach target,$(gbuild_TARGETS),$(target)_% $(foreach module,$(gbuild_modules),$(target)_$(module)/%)) UIConfig_modules/% %.genpatch: bootstrap fetch
169 $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
171 $(gbuild_TARGETS):
172 $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
175 # Clean
177 clean: clean-host clean-build
179 clean-host:
180 rm -fr $(TESTINSTALLDIR)
181 rm -fr $(INSTDIR)
182 rm -fr $(WORKDIR)
184 clean-build:
185 ifneq ($(CROSS_COMPILING),)
186 rm -fr $(INSTDIR_FOR_BUILD)
187 rm -fr $(WORKDIR_FOR_BUILD)
188 ifeq ($(OS),ANDROID)
189 rm -fr $(BUILDDIR)/android/obj
190 rm -fr $(BUILDDIR)/android/jniLibs
191 rm -fr $(SRCDIR)/android/source/build
192 rm -fr $(SRCDIR)/android/source/assets
193 rm -fr $(SRCDIR)/android/source/assets_fullUI
194 rm -fr $(SRCDIR)/android/source/assets_strippedUI
195 endif
196 endif
198 include $(SRCDIR)/compilerplugins/Makefile.mk
201 # Distclean
203 distclean : clean compilerplugins-clean mac-app-store-package.clean
204 rm -fr \
205 $(BUILDDIR)/Makefile \
206 $(BUILDDIR)/aclocal.m4 \
207 $(BUILDDIR)/autom4te.cache \
208 $(BUILDDIR)/bin/bffvalidator.sh \
209 $(BUILDDIR)/bin/odfvalidator.sh \
210 $(BUILDDIR)/bin/officeotron.sh \
211 $(BUILDDIR)/config.Build.log \
212 $(BUILDDIR)/config.Build.warn \
213 $(BUILDDIR)/config.log \
214 $(BUILDDIR)/config.status \
215 $(BUILDDIR)/config.warn \
216 $(BUILDDIR)/config_build.mk \
217 $(BUILDDIR)/config_build_lang.mk \
218 $(BUILDDIR)/config_build \
219 $(BUILDDIR)/config_host.mk \
220 $(BUILDDIR)/config_host.mk.stamp \
221 $(BUILDDIR)/config_host_lang.mk \
222 $(BUILDDIR)/config_host_lang.mk.stamp \
223 $(BUILDDIR)/config_host/*.h \
224 $(BUILDDIR)/configure \
225 $(BUILDDIR)/hardened_runtime.xcent \
226 $(BUILDDIR)/instsetoo_native/util/openoffice.lst \
227 $(BUILDDIR)/solenv/lockfile/autoconf.h \
228 $(BUILDDIR)/lo.xcent \
229 $(BUILDDIR)/sysui/desktop/macosx/Info.plist \
230 $(BUILDDIR)/vs-code*.code-workspace*
231 $(if $(filter WNT,$(OS)),env -i PATH="$$PATH") $(FIND) $(SRCDIR)/solenv/gdb -name \*.pyc -exec rm -f {} \;
234 # custom command
236 cmd:
237 $(if $(verbose),echo "custom cmd" &&) ( $(cmd) )
240 # Fetch
242 ifneq ($(DO_FETCH_TARBALLS),)
243 include $(SRCDIR)/Makefile.fetch
244 fetch: download
245 fetch: get-submodules
247 ifneq (,$(wildcard $(SRCDIR)/.git))
248 get-submodules:
249 ifneq ($(foreach i,$(GIT_NEEDED_SUBMODULES),$(SRCDIR)/$(i)/.git),$(wildcard $(foreach i,$(GIT_NEEDED_SUBMODULES),$(SRCDIR)/$(i)/.git)))
250 cd $(SRCDIR) && ./g -f clone
251 endif
252 ifeq ($(shell test -d $(SRCDIR)/.git; echo $$?),0)
253 @cd $(SRCDIR) && ./g -z # make sure the git hooks are in place even if no submodules are needed
254 endif
256 else # these sources are from a tarball, so get the other source tarballs
257 gb_LO_VER := $(shell . $(SRCDIR)/sources.ver && echo $$lo_sources_ver)
258 $(if $(gb_LO_VER),,$(error Error while retrieving $$lo_sources_ver from $(SRCDIR)/sources.ver))
260 get-submodules: | download
261 ifneq ($(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),$(SRCDIR)/src/libreoffice-$(i)-$(gb_LO_VER)),$(wildcard $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),$(SRCDIR)/src/libreoffice-$(i)-$(gb_LO_VER))))
262 $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
263 $(call fetch_Download_item_unchecked,https://download.documentfoundation.org/libreoffice/src/$(shell echo $(gb_LO_VER) | sed -e "s/\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/"),libreoffice-$(i)-$(gb_LO_VER).tar.xz))
264 $(SRCDIR)/bin/unpack-sources $(SRCDIR) $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
265 $(TARFILE_LOCATION)/libreoffice-$(i)-$(gb_LO_VER).tar.xz)
266 endif
268 endif
270 else
271 fetch:
272 @echo "Automatic fetching of external tarballs is disabled."
274 endif
277 # Bootstrap
279 bootstrap: check-if-root compilerplugins
282 # Build
284 # Note: this will pipe through all gbuild targets to ... gbuild
285 # with some translations like "check"->"unitcheck subsequentcheck uicheck" for historic reasons
287 build: bootstrap fetch $(if $(CROSS_COMPILING),cross-toolset,install-gdb-printers) \
288 $(if $(filter check,$(MAKECMDGOALS)),$(if $(COMPILER_PLUGINS),$(if $(LODE_HOME),clang-format-check)))
289 $(MAKE) $(PARALLELISM_OPTION) $(IWYU_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(build_goal)
290 ifeq ($(OS),iOS)
291 $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) ios
292 endif
294 build-non-l10n-only build-l10n-only check debugrun translations packageinfo coverage $(gb_Top_MODULE_CHECK_TARGETS): build
296 help showmodules gbuildtojson pocheck:
297 $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
299 cross-toolset: bootstrap fetch install-gdb-printers
300 # fetch again in case there are externals only needed on build platform
301 ifneq ($(OS),iOS)
302 $(MAKE) gb_Side=build $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(BUILDDIR)/Makefile fetch
303 endif
304 $(MAKE) gb_Side=build $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild build-tools
306 install-gdb-printers:
307 ifneq ($(filter-out WNT MACOSX iOS,$(OS)),)
308 ifneq ($(INSTDIR_FOR_BUILD),$(INSTDIR))
309 mkdir -p $(INSTDIR_FOR_BUILD)
310 $(SRCDIR)/solenv/bin/install-gdb-printers -a $(INSTDIR_FOR_BUILD) -c
311 endif
312 mkdir -p $(INSTDIR)
313 $(SRCDIR)/solenv/bin/install-gdb-printers -a $(INSTDIR) -c
314 endif
318 # Install
321 define gb_Top_DoInstall
322 echo "$(1) in $(INSTALLDIR) ..." && \
323 WITH_LANG_LIST="$(WITH_LANG_LIST)" $(SRCDIR)/solenv/bin/ooinstall $(2) "$(INSTALLDIR)"
325 endef
327 ifneq ($(OS),MACOSX)
328 define gb_Top_InstallFinished
329 echo && echo "If you want to edit the .ui files with glade first execute:" && \
330 echo && echo "export GLADE_CATALOG_SEARCH_PATH=$(2)/share/glade" && \
331 echo && echo "$(1) finished, you can now execute:" && \
332 echo "$(2)/program/soffice"
334 endef
335 else
336 define gb_Top_InstallFinished
337 echo && echo "$(1) finished, you can now run: " && \
338 echo "open $(2)/$(PRODUCTNAME).app" && \
339 echo "" && \
340 echo "To debug: gdb $(2)/$(PRODUCTNAME).app/Contents/MacOS/soffice"
342 endef
343 endif
345 ifneq ($(OS),MACOSX)
346 install:
347 @$(call gb_Top_DoInstall,Installing,)
348 @$(call gb_Top_InstallFinished,Installation,$(INSTALLDIR))
350 install-strip:
351 @$(call gb_Top_DoInstall,Installing and stripping binaries,--strip)
352 @$(call gb_Top_InstallFinished,Installation,$(INSTALLDIR))
353 endif # !MACOSX
355 test-install: build
356 @rm -rf $(TESTINSTALLDIR)
357 @mkdir -p $(TESTINSTALLDIR)
358 ifeq ($(OS_FOR_BUILD),WNT)
359 cd $(SRCDIR)/instsetoo_native && $(MAKE) LIBO_TEST_INSTALL=TRUE $(GMAKE_OPTIONS)
360 else
361 @WITH_LANG_LIST="$(WITH_LANG_LIST)" $(SRCDIR)/solenv/bin/ooinstall $(TESTINSTALLDIR)
362 ifeq ($(OS),MACOSX)
364 # Create Resources/*.lproj directories for languages supported by macOS
365 set -x; for lang in ca cs da de el en es fi fr hr hu id it ja ko ms nl no pl pt pt_PT ro ru sk sv th tr uk vi zh_CN zh_TW; do \
366 lproj=$(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Resources/$$lang.lproj; \
367 mkdir "$$lproj"; \
368 done
370 # Remove unnecessary executables in the LibreOfficePython framework
371 rm -rf $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Frameworks/LibreOfficePython.framework/Versions/[1-9]*/bin
373 # Remove the python.o object file which is weird and interferes with app store uploading
374 # And with it removed, presumably the other stuff in the Python lib/python3.3/config-3.3m probably does not make sense either.
375 rm -rf $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Frameworks/LibreOfficePython.framework/Versions/[1-9]*/lib/python[1-9]*/config-[1-9]*
377 ifneq ($(ENABLE_MACOSX_SANDBOX),)
379 # Remove the gengal binary that we hardly need and the shell scripts
380 # for which code signatures (stored as extended attributes) won't
381 # survive upload to the App Store anyway. See
382 # https://developer.apple.com/library/content/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4-TNTAG201
383 # We could put the shell scripts somewhere in Resources instead, but
384 # no 3rd-party code that would be interested in them would look there
385 # anyway.
386 rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/gengal
387 rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/unopkg
388 rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/unoinfo
389 endif
390 ifneq ($(MACOSX_PROVISIONING_PROFILE),)
391 cp "$(MACOSX_PROVISIONING_PROFILE)" $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/embedded.provisionprofile
392 endif
393 ifneq ($(MACOSX_CODESIGNING_IDENTITY),)
394 # Then use the macosx-codesign-app-bundle script
395 @$(SRCDIR)/solenv/bin/macosx-codesign-app-bundle $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app
396 endif
397 endif
398 endif
399 @$(call gb_Top_InstallFinished,Test Installation,$(TESTINSTALLDIR))
401 # target to bypass the packaging steps/to only assemble the package
402 mac-app-store-package.prepare: $(BUILDDIR)/$(PLATFORMID)/done
404 # shorthand target to build a complete package for the currently building architecture
405 mac-app-store-package: mac-app-store-package.$(PLATFORMID)
407 # recipe/targets to do the actual packaging
408 # the symbolication switch to productbuild unfortunately is undocumented, but that is what XCode
409 # uses when it creates a package with symbols for uploading to the appstore
410 mac-app-store-package.$(PLATFORMID) mac-app-store-package.universal: mac-app-store-package.%: $(BUILDDIR)/%/done
411 ifneq ($(MACOSX_PACKAGE_SIGNING_IDENTITY),)
412 $(SRCDIR)/solenv/bin/macosx-codesign-app-bundle $*/"$(PRODUCTNAME)".app
413 productbuild $(if $(ENABLE_SYMBOLS_FOR),--symbolication $*/Symbols) --component $*/"$(PRODUCTNAME)".app /Applications --sign $(MACOSX_PACKAGE_SIGNING_IDENTITY) $(PRODUCTNAME_WITHOUT_SPACES).pkg
414 else
415 @echo You did not provide an installer signing identity with --enable-macosx-package-signing
416 @exit 1
417 endif
419 # the builds need to persist a standard "make clean" to be able to combine them into a universal
420 # binary, so provide an additional target that can be used standalone or via make distclean
421 mac-app-store-package.clean:
422 rm -rf \
423 $(BUILDDIR)/macosx_x86_64 \
424 $(BUILDDIR)/macosx_aarch64 \
425 $(BUILDDIR)/universal \
426 $(BUILDDIR)/$(PRODUCTNAME_WITHOUT_SPACES).pkg
428 # used by the mac-app-store targets
429 $(BUILDDIR)/$(PLATFORMID)/done: test-install
430 rm -rf $(PLATFORMID)
431 mkdir -p $(PLATFORMID)/Symbols
432 mv $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app $(PLATFORMID)/"$(PRODUCTNAME)".app
433 ifneq ($(ENABLE_SYMBOLS_FOR),)
434 symbols -arch all -symbolsPackageDir $(PLATFORMID)/Symbols $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/Frameworks/[^L]* $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/MacOS/*
435 strip -S $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/Frameworks/[^L]* $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/MacOS/*
436 endif
437 touch $@
439 # build one arch using the mac-app-store-package.prepare target, make clean and change the autogen.input
440 # to build for the other target, then use mac-app-store-package.universal to build for the other arch and
441 # combine the two into a universal binary
442 $(BUILDDIR)/universal/done: $(BUILDDIR)/macosx_x86_64/done $(BUILDDIR)/macosx_aarch64/done
443 rm -rf universal
444 mkdir -p universal/Symbols
445 ifneq ($(ENABLE_SYMBOLS_FOR),)
446 cp -a macosx_x86_64/Symbols/* macosx_aarch64/Symbols/* universal/Symbols/
447 endif
448 $(SRCDIR)/bin/merge-app-bundles macosx_x86_64/"$(PRODUCTNAME)".app macosx_aarch64/"$(PRODUCTNAME)".app universal/"$(PRODUCTNAME)".app
449 touch $@
451 distro-pack-install: install
452 WITH_LANG_LIST="$(WITH_LANG_LIST)" WITH_POOR_HELP_LOCALIZATIONS="$(WITH_POOR_HELP_LOCALIZATIONS)" $(SRCDIR)/bin/distro-install-clean-up
453 $(SRCDIR)/bin/distro-install-desktop-integration
454 $(SRCDIR)/bin/distro-install-sdk
455 WITH_LANG_LIST="$(WITH_LANG_LIST)" $(SRCDIR)/bin/distro-install-file-lists
457 install-package-%:
458 $(MAKE) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
461 @$(SRCDIR)/solenv/bin/create-ids
463 tags:
464 @$(SRCDIR)/solenv/bin/create-tags
466 etags:
467 @$(SRCDIR)/solenv/bin/create-tags -e
469 docs:
470 @$(SRCDIR)/solenv/bin/mkdocs.sh $(SRCDIR)/docs $(SRCDIR)/solenv/inc/doxygen.cfg
472 findunusedheaders:
473 $(SRCDIR)/bin/find-unusedheaders.py
475 symbols:
476 rm -fr $(WORKDIR)/symbols/
477 mkdir -p $(WORKDIR)/symbols/
478 ifeq ($(OS),WNT)
479 $(SRCDIR)/bin/symbolstore.py $(WORKDIR)/UnpackedTarball/breakpad/src/tools/windows/dump_syms/Release/dump_syms.exe $(WORKDIR)/symbols/ $(INSTDIR)/program/
480 $(SRCDIR)/bin/symstore.sh
481 else
482 $(SRCDIR)/bin/symbolstore.py $(WORKDIR)/UnpackedTarball/breakpad/src/tools/linux/dump_syms/dump_syms $(WORKDIR)/symbols/ $(INSTDIR)/program/*
483 endif
485 cd $(WORKDIR)/symbols/ && zip -r $(WORKDIR)/symbols.zip *
487 create-mar:
488 rm -fr $(WORKDIR)/installation/mar/
489 rm -fr $(WORKDIR)/installation/temp/
490 mkdir -p $(WORKDIR)/installation/temp/
491 mkdir -p $(WORKDIR)/installation/mar/
492 tar -xzf $(WORKDIR)/installation/LibreOfficeDev/archive/install/en-US/LibreOffice* -C $(WORKDIR)/installation/temp/
493 $(SRCDIR)/bin/update/make_full_update.sh $(WORKDIR)/installation/mar/test.mar $(WORKDIR)/installation/temp/*/
495 upload-symbols:
496 $(MAKE) -f $(SRCDIR)/Makefile.gbuild upload-symbols
498 create-update-info:
499 $(MAKE) -f $(SRCDIR)/Makefile.gbuild create-update-info
501 upload-update-info:
502 $(MAKE) -f $(SRCDIR)/Makefile.gbuild upload-update-info
504 create-partial-info:
505 $(MAKE) -f $(SRCDIR)/Makefile.gbuild create-partial-info
507 dump-deps:
508 @$(SRCDIR)/bin/module-deps.pl $(if $(verbose),-v) $(MAKE) $(SRCDIR)/Makefile.gbuild
510 dump-deps-png:
511 @$(SRCDIR)/bin/module-deps.pl $(if $(verbose),-v) $(MAKE) $(SRCDIR)/Makefile.gbuild | dot -Tpng -o lo.png
513 dump-deps-sort:
514 @$(SRCDIR)/bin/module-deps.pl -t $(if $(verbose),-v) $(MAKE) $(SRCDIR)/Makefile.gbuild
516 clang-format-check:
517 @$(SRCDIR)/solenv/clang-format/check-last-commit
519 define gb_Top_GbuildToIdeIntegration
520 $(1)-ide-integration: gbuildtojson $(if $(filter MACOSX,$(OS_FOR_BUILD)),python3.allbuild)
521 cd $(SRCDIR) && \
522 $(if $(filter MACOSX,$(OS_FOR_BUILD)),PATH="$(INSTROOT_FOR_BUILD)/Frameworks/LibreOfficePython.framework/Versions/Current/bin:$(PATH)") \
523 bin/gbuild-to-ide --ide $(1) --make $(MAKE)
525 endef
527 $(foreach ide,\
528 codelite \
529 vs \
530 kdevelop \
531 vim \
532 qtcreator \
533 xcode \
534 eclipsecdt,\
535 $(eval $(call gb_Top_GbuildToIdeIntegration,$(ide))))
537 # vscode integration is based on compile_commands.json, which is generated by vim-ide-integration
538 # the workspace template created by configure doesn't provide advanced/fine grained targets but
539 # rather supplies some useful settings and basic examples for run/debug configurations
540 # this target is provided primarily for consistency with the other ide-integrations
541 vscode-ide-integration: $(BUILDDIR)/vs-code.code-workspace vim-ide-integration
543 # ToDo: there probably is a way to have it at least create the compile-commands.json file
544 # for the vim/vs-code integration without building the registry stuff
545 gbuildtojson: Rdb
547 $(BUILDDIR)/vs-code.code-workspace: $(BUILDDIR)/vs-code.code-workspace.template
548 @test -e $@ || cp $< $@ && \
549 cmp -s $@ $< || echo "ATTN: $(@F) differs from $(<F), please check yourself for changes"
551 endif # MAKE_RESTARTS
553 # vim: set noet sw=4 ts=4: