Makefile.in 18.2 KB
Newer Older
1
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2
#
3
# This file is part of the LibreOffice project.
4 5 6 7 8
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
9

10
gb_Top_MODULE_CHECK_TARGETS := slowcheck unitcheck subsequentcheck perfcheck uicheck screenshot
11

12
.PHONY : all 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 internal.clean $(gb_Top_MODULE_CHECK_TARGETS)
13

14
MAKECMDGOALS?=all
15
build_goal:=$(if $(filter build check,$(MAKECMDGOALS)),all)\
16
 $(if $(filter build-nocheck uicheck,$(MAKECMDGOALS)),build)\
17
 $(if $(filter check,$(MAKECMDGOALS)),subsequentcheck $(if $(filter Linux, $(shell uname)), uicheck))\
18
 $(filter all build-l10n-only build-non-l10n-only debugrun help showmodules translations $(gb_Top_MODULE_CHECK_TARGETS) check packageinfo gbuildtojson,$(MAKECMDGOALS))
19

20 21
SRCDIR := @SRC_ROOT@
BUILDDIR := @BUILDDIR@
22
COMPILER_PLUGINS := @COMPILER_PLUGINS@
23
GIT_BUILD := $(if $(wildcard $(SRCDIR)/.git),T)
24

25 26 27 28 29 30 31
# Run autogen.sh if needed and force make to restart itself.
# ... but there are several cases where we do not want to run
# autogen.sh:
# 1. if we are building from tarballs, not git checkout (I do not
#    think packagers would ever want that. I certainly do not.)
# 2. if we are making help, clean or distclean, because they do not
#    need updated configuration
32
ifeq (,$(MAKE_RESTARTS)$(if $(GIT_BUILD),,T)$(if $(filter-out help showmodules clean distclean,$(MAKECMDGOALS)),,T))
33

34 35 36
# note: this must touch both Makefile and $(BUILDDIR)/Makefile, because make
# may be invoked using either of these paths, and it will restart itself only
# if the updated target is exactly the same path as the Makefile it is using
37
.PHONY : force-restart
38
Makefile $(BUILDDIR)/Makefile: $(BUILDDIR)/config_host.mk $(BUILDDIR)/config_host_lang.mk force-restart
39
	@touch $@
40

41
# run configure in an environment not polluted by config_host.mk
Matúš Kukan's avatar
Matúš Kukan committed
42
$(BUILDDIR)/config_host.mk : $(wildcard \
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 \
Matúš Kukan's avatar
Matúš Kukan committed
48
		$(SRCDIR)/config_host/*.h.in \
49
		$(SRCDIR)/download.lst \
Matúš Kukan's avatar
Matúš Kukan committed
50
		$(BUILDDIR)/autogen.input \
51
		$(BUILDDIR)/autogen.lastrun \
52
		$(BUILDDIR)/autogen.sh \
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
57

58 59
else # MAKE_RESTARTS

60
all: build
Tor Lillqvist's avatar
Tor Lillqvist committed
61

62
check-if-root:
Stephan Bergmann's avatar
Stephan Bergmann committed
63
	@if test ! `uname` = 'Haiku' -a `id -u` = 0 && ! grep -q 'lxc\|docker' /proc/self/cgroup; then \
64
		echo; \
65
		echo 'Building LibreOffice as root is a very bad idea, use a regular user.'; \
66 67 68 69
		echo; \
		exit 1; \
	fi

70
gb_Side ?= host
71 72 73

include $(BUILDDIR)/config_$(gb_Side).mk

74
export GMAKE_OPTIONS?=-r$(if $(verbose),,s)$(value $(MAKEFLAGS))
75

76 77
PARALLELISM_OPTION := $(if $(filter-out 0,$(PARALLELISM)),-j $(PARALLELISM),)

78
IWYU_OPTION := $(if $(IWYU_PATH),-k CC=$(IWYU_PATH) CXX=$(IWYU_PATH),)
79

80 81
# don't want to have a dependency to iwyudummy.generate because it's
# useful to manually edit the generated StaticLibrary_iwyudummy.mk
82
iwyudummy: bootstrap fetch
83
	$(if $(wildcard $(BUILDDIR)/iwyudummy),,$(error first call "make iwyudummy.generate"))
84 85
	cd $(BUILDDIR)/iwyudummy && $(MAKE) $(IWYU_OPTION) $(GMAKE_OPTIONS)

86 87 88
iwyudummy.generate:
	$(SRCDIR)/bin/gen-iwyu-dummy-lib

Matúš Kukan's avatar
Matúš Kukan committed
89 90 91
#
# Partial Build
#
Bjoern Michaelsen's avatar
Bjoern Michaelsen committed
92
define gb_Top_GbuildModuleRules
93
.PHONY: $(1) $(1).all $(1).build $(1).check $(1).clean $(1).showdeliverables $(foreach target,$(gb_Top_MODULE_CHECK_TARGETS),$(1).$(target))
94 95

$(1): bootstrap fetch
96
	cd $(SRCDIR)/$(2) && $$(MAKE) $(IWYU_OPTION) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS)
97

98 99 100 101
$(1).build $(1).check $(foreach target,$(gb_Top_MODULE_CHECK_TARGETS),$(1).$(target)): bootstrap fetch
	cd $(SRCDIR)/$(2) && $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) $$(patsubst $(1).%,%,$$@)

$(1).clean $(1).showdeliverables:
102
	cd $(SRCDIR)/$(2) && $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) $$(patsubst $(1).%,%,$$@)
103

104
$(1).all: bootstrap fetch
105
	$$(MAKE) $(PARALLELISM_OPTION) $(IWYU_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(WORKDIR)/Module/$(1) $(if $(CROSS_COMPILING),,$(WORKDIR)/Module/check/$(1) $(WORKDIR)/Module/slowcheck/$(1))
106

107 108
endef

Bjoern Michaelsen's avatar
Bjoern Michaelsen committed
109 110
define gb_Top_GbuildModulesRules
$(foreach m,$(1),$(call gb_Top_GbuildModuleRules,$(notdir $(m)),$(m)))
111 112
endef

113
gbuild_modules := $(patsubst $(SRCDIR)/%/,%,$(dir $(wildcard $(SRCDIR)/*/Module_*.mk $(SRCDIR)/external/*/Module_*.mk)))
114

115 116 117 118 119
gbuild_internal_modules := $(filter-out odk external,$(patsubst $(SRCDIR)/%/,%,$(dir $(wildcard $(SRCDIR)/*/Module_*.mk))))

internal.clean: $(addsuffix .clean,$(gbuild_internal_modules))


Bjoern Michaelsen's avatar
Bjoern Michaelsen committed
120
$(eval $(call gb_Top_GbuildModulesRules,$(gbuild_modules)))
121

122
gbuild_TARGETS := AllLangHelp \
123
	AllLangMoTarget \
David Tardon's avatar
David Tardon committed
124
	AllLangPackage \
125
	AutoInstall \
126 127
	CliLibrary \
	CliNativeLibrary \
128
	CliUnoApi \
129
	CompilerTest \
130 131 132 133 134 135
	Configuration \
	CppunitTest \
	CustomTarget \
	Dictionary \
	Executable \
	Extension \
136
	ExtensionPackage \
137
	ExtensionPackageSet \
138 139
	ExternalPackage \
	ExternalProject \
140
	Gallery \
141
	GeneratedPackage \
142 143 144 145 146 147 148 149
	InstallModule \
	InstallScript \
	InternalUnoApi \
	Jar \
	JunitTest \
	Library \
	Module \
	Package \
150
	PackageSet \
151
	Pagein \
152
	Postprocess \
153
	Pyuno \
154
	PythonTest \
155
	Rdb \
156
	SdiTarget \
157
	StaticLibrary \
David Tardon's avatar
David Tardon committed
158
	UIConfig \
159
	UITest \
160 161 162
	UnoApi \
	UnpackedTarball \
	WinResTarget \
163
	Zip \
164

165
# build a generic gbuild target
166
$(foreach target,$(gbuild_TARGETS),$(target)_% $(foreach module,$(gbuild_modules),$(target)_$(module)/%)) UIConfig_modules/% %.genpatch: bootstrap fetch
167
	$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
168

169 170 171
$(gbuild_TARGETS):
	$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@

172 173 174 175 176 177
#
# Clean
#
clean: clean-host clean-build

clean-host:
178
	rm -fr $(TESTINSTALLDIR)
179
	rm -fr $(INSTDIR)
180 181 182
	rm -fr $(WORKDIR)

clean-build:
183
ifneq ($(CROSS_COMPILING),)
184
	rm -fr $(INSTDIR_FOR_BUILD)
Matúš Kukan's avatar
Matúš Kukan committed
185
	rm -fr $(WORKDIR_FOR_BUILD)
186 187 188 189 190 191 192 193
ifeq ($(OS),ANDROID)
	rm -fr $(SRCDIR)/android/source/obj
	rm -fr $(SRCDIR)/android/source/jniLibs
	rm -fr $(SRCDIR)/android/source/build
	rm -fr $(SRCDIR)/android/source/assets
	rm -fr $(SRCDIR)/android/source/assets_fullUI
	rm -fr $(SRCDIR)/android/source/assets_strippedUI
endif
194 195 196 197 198 199 200 201 202 203 204 205
endif

include $(SRCDIR)/compilerplugins/Makefile.mk

#
# Distclean
#
distclean : clean compilerplugins-clean
	rm -fr \
        $(BUILDDIR)/Makefile \
        $(BUILDDIR)/aclocal.m4 \
        $(BUILDDIR)/autom4te.cache \
206
        $(BUILDDIR)/bin/bffvalidator.sh \
207 208
        $(BUILDDIR)/bin/odfvalidator.sh \
        $(BUILDDIR)/bin/officeotron.sh \
209
        $(BUILDDIR)/config.log \
210
        $(BUILDDIR)/config.Build.log \
211 212
        $(BUILDDIR)/config.status \
        $(BUILDDIR)/config_build.mk \
213
        $(BUILDDIR)/config_build_lang.mk \
214
        $(BUILDDIR)/config_build \
215 216
        $(BUILDDIR)/config_host.mk \
        $(BUILDDIR)/config_host.mk.stamp \
217 218
        $(BUILDDIR)/config_host_lang.mk \
        $(BUILDDIR)/config_host_lang.mk.stamp \
219
        $(BUILDDIR)/config_host/*.h \
220
        $(BUILDDIR)/configure \
221
        $(BUILDDIR)/instsetoo_native/util/openoffice.lst \
222
        $(BUILDDIR)/sysui/desktop/macosx/Info.plist
223
	$(if $(filter WNT,$(OS)),env -i PATH="$$PATH") $(FIND) $(SRCDIR)/solenv/gdb -name \*.pyc -exec rm {} \;
224 225 226 227 228 229 230 231 232 233

#
# custom command
#
cmd:
	echo "custom cmd" && ( $(cmd) )

#
# Fetch
#
234
ifneq ($(DO_FETCH_TARBALLS),)
235 236 237 238 239 240
include $(SRCDIR)/Makefile.fetch
fetch: download
fetch: get-submodules

ifneq (,$(wildcard $(SRCDIR)/.git))
get-submodules:
241
ifneq ($(foreach i,$(GIT_NEEDED_SUBMODULES),$(SRCDIR)/$(i)/.git),$(wildcard $(foreach i,$(GIT_NEEDED_SUBMODULES),$(SRCDIR)/$(i)/.git)))
242 243
	cd $(SRCDIR) && ./g -f clone
endif
244
ifeq ($(shell test -d $(SRCDIR)/.git; echo $$?),0)
Andrea Gelmini's avatar
Andrea Gelmini committed
245
	@cd $(SRCDIR) && ./g -z # make sure the git hooks are in place even if no submodules are needed
246
endif
247 248 249 250 251 252 253 254

else # these sources are from a tarball, so get the other source tarballs
gb_LO_VER := $(shell . $(SRCDIR)/sources.ver && echo $$lo_sources_ver)
$(if $(gb_LO_VER),,$(error Error while retrieving $$lo_sources_ver from $(SRCDIR)/sources.ver))

get-submodules: | download
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))))
	$(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
255
		$(call fetch_Download_item_unchecked,http://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))
256 257 258 259 260 261 262 263 264 265 266 267 268
	$(SRCDIR)/bin/unpack-sources $(SRCDIR) $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
		$(TARFILE_LOCATION)/libreoffice-$(i)-$(gb_LO_VER).tar.xz)
endif

endif

else
fetch:
	@echo "Automatic fetching of external tarballs is disabled."

endif

#
269
# Bootstrap
270
#
271
bootstrap: check-if-root compilerplugins
272 273 274 275

#
# Build
#
Bjoern Michaelsen's avatar
Bjoern Michaelsen committed
276 277
# Note: this will pipe through all gbuild targets to ... gbuild
#       with some translations like "build"->"all" for historic reasons
278
#
279
build: bootstrap fetch $(if $(CROSS_COMPILING),cross-toolset) \
280
        $(if $(filter check,$(MAKECMDGOALS)),$(if $(COMPILER_PLUGINS),$(if $(LODE_HOME),clang-format-check))) \
281
        install-gdb-printers
282
	$(MAKE) $(PARALLELISM_OPTION) $(IWYU_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(build_goal)
283
ifeq ($(OS),iOS)
284
	$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) ios
285
endif
286

287 288
build-non-l10n-only build-l10n-only build-nocheck check debugrun translations packageinfo $(gb_Top_MODULE_CHECK_TARGETS): build

289
help showmodules gbuildtojson:
290
	$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
291

292
cross-toolset: bootstrap fetch
293
	# fetch again in case there are externals only needed on build platform
294
ifneq ($(OS),iOS)
295
	$(MAKE) gb_Side=build $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(BUILDDIR)/Makefile fetch
jan Iversen's avatar
jan Iversen committed
296
endif
297
	$(MAKE) gb_Side=build $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild build-tools
298

299
install-gdb-printers:
300
ifneq ($(filter-out WNT MACOSX iOS,$(OS)),)
301 302 303 304
	mkdir -p $(INSTDIR)
	$(SRCDIR)/solenv/bin/install-gdb-printers -a $(INSTDIR) -c
endif

305

306 307 308 309
#
# Install
#

310 311
define gb_Top_DoInstall
echo "$(1) in $(INSTALLDIR) ..." && \
312
$(SRCDIR)/solenv/bin/ooinstall $(2) "$(INSTALLDIR)"
313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334

endef

ifneq ($(OS),MACOSX)
define gb_Top_InstallFinished
echo && echo "If you want to edit the .ui files with glade first execute:" && \
echo && echo "export GLADE_CATALOG_SEARCH_PATH=$(2)/share/glade" && \
echo && echo "$(1) finished, you can now execute:" && \
echo "$(2)/program/soffice"

endef
else
define gb_Top_InstallFinished
echo && echo "$(1) finished, you can now run: " && \
echo "open $(2)/$(PRODUCTNAME).app" && \
echo "" && \
echo "To debug: gdb $(2)/$(PRODUCTNAME).app/Contents/MacOS/soffice"

endef
endif

ifneq ($(OS),MACOSX)
335
install:
336 337
	@$(call gb_Top_DoInstall,Installing,)
	@$(call gb_Top_InstallFinished,Installation,$(INSTALLDIR))
338 339

install-strip:
340 341
	@$(call gb_Top_DoInstall,Installing and stripping binaries,--strip)
	@$(call gb_Top_InstallFinished,Installation,$(INSTALLDIR))
342 343
endif # !MACOSX

344
test-install: build
345
	@rm -rf $(TESTINSTALLDIR)
346
	@mkdir -p $(TESTINSTALLDIR)
347
ifeq ($(OS_FOR_BUILD),WNT)
348
	cd $(SRCDIR)/instsetoo_native && $(MAKE) LIBO_TEST_INSTALL=TRUE $(GMAKE_OPTIONS)
349
else
350
	@$(SRCDIR)/solenv/bin/ooinstall $(TESTINSTALLDIR)
351
ifneq ($(MACOSX_CODESIGNING_IDENTITY),)
352
#
353
# Create Resources/*.lproj directories for languages supported by macOS
354
	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 \
355 356
		lproj=$(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Resources/$$lang.lproj; \
		mkdir "$$lproj"; \
357
	done
358
#
359
# Remove unnecessary executables in the LibreOfficePython framework
360
	rm -rf $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Frameworks/LibreOfficePython.framework/Versions/[1-9]*/bin
361 362 363
#
# Remove the python.o object file which is weird and interferes with app store uploading
# And with it removed, presumably the other stuff in the Python lib/python3.3/config-3.3m probably does not make sense either.
364
	rm -rf $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Frameworks/LibreOfficePython.framework/Versions/[1-9]*/lib/python[1-9]*/config-[1-9]*
365
#
Stephan Bergmann's avatar
Stephan Bergmann committed
366
ifneq ($(ENABLE_MACOSX_SANDBOX),)
367 368 369

# Remove the gengal binary that we hardly need and the shell scripts
# for which code signatures (stored as extended attributes) won't
Andrea Gelmini's avatar
Andrea Gelmini committed
370
# survive upload to the App Store anyway. See
371 372 373 374
# https://developer.apple.com/library/content/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4-TNTAG201
# We could put the shell scripts somewhere in Resources instead, but
# no 3rd-party code that would be interested in them would look there
# anyway.
375 376
	rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/gengal
	rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/unopkg
377
	rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/unoinfo
378 379 380
endif
#
# Then use the macosx-codesign-app-bundle script
381
	@$(SRCDIR)/solenv/bin/macosx-codesign-app-bundle $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app
382
endif
383
endif
384
	@$(call gb_Top_InstallFinished,Test Installation,$(TESTINSTALLDIR))
385

386 387
mac-app-store-package: test-install
ifneq ($(MACOSX_PACKAGE_SIGNING_IDENTITY),)
388 389 390
	rm -rf "$(PRODUCTNAME).app"
	mv "$(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app" "$(PRODUCTNAME).app"
	productbuild --component "$(PRODUCTNAME).app" /Applications --sign $(MACOSX_PACKAGE_SIGNING_IDENTITY) $(PRODUCTNAME_WITHOUT_SPACES).pkg
391 392 393 394 395
else
	@echo You did not provide an installer signing identity with --enable-macosx-package-signing
	@exit 1
endif

396
distro-pack-install: install
397 398 399 400
	$(SRCDIR)/bin/distro-install-clean-up
	$(SRCDIR)/bin/distro-install-desktop-integration
	$(SRCDIR)/bin/distro-install-sdk
	$(SRCDIR)/bin/distro-install-file-lists
401

402
install-package-%:
403
	$(MAKE) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
404

405
id:
406
	@$(SRCDIR)/solenv/bin/create-ids
407 408

tags:
409
	@$(SRCDIR)/solenv/bin/create-tags
410

411
etags:
412
	@$(SRCDIR)/solenv/bin/create-tags -e
413

414
docs:
415
	@$(SRCDIR)/solenv/bin/mkdocs.sh $(SRCDIR)/docs $(SRCDIR)/solenv/inc/doxygen.cfg
416

417
findunusedheaders:
418
	$(SRCDIR)/bin/find-unusedheaders.py
419

420
symbols:
421
	rm -fr $(WORKDIR)/symbols/
422
	mkdir -p $(WORKDIR)/symbols/
423 424
ifeq ($(OS),WNT)
	$(SRCDIR)/bin/symbolstore.py $(WORKDIR)/UnpackedTarball/breakpad/src/tools/windows/binaries/dump_syms.exe $(WORKDIR)/symbols/ $(INSTDIR)/program/*
425
	$(SRCDIR)/bin/symstore.sh
426
else
427
	$(SRCDIR)/bin/symbolstore.py $(WORKDIR)/UnpackedTarball/breakpad/src/tools/linux/dump_syms/dump_syms $(WORKDIR)/symbols/ $(INSTDIR)/program/*
428 429
endif

430
	cd $(WORKDIR)/symbols/ && zip -r $(WORKDIR)/symbols.zip *
431

432 433 434 435 436 437 438 439
create-mar:
	rm -fr $(WORKDIR)/installation/mar/
	rm -fr $(WORKDIR)/installation/temp/
	mkdir -p $(WORKDIR)/installation/temp/
	mkdir -p $(WORKDIR)/installation/mar/
	tar -xzf $(WORKDIR)/installation/LibreOfficeDev/archive/install/en-US/LibreOffice* -C $(WORKDIR)/installation/temp/
	$(SRCDIR)/bin/update/make_full_update.sh $(WORKDIR)/installation/mar/test.mar $(WORKDIR)/installation/temp/*/

440 441 442
upload-symbols:
	$(MAKE) -f $(SRCDIR)/Makefile.gbuild upload-symbols

443 444 445
create-update-info:
	$(MAKE) -f $(SRCDIR)/Makefile.gbuild create-update-info

446 447 448
upload-update-info:
	$(MAKE) -f $(SRCDIR)/Makefile.gbuild upload-update-info

449 450 451
create-partial-info:
	$(MAKE) -f $(SRCDIR)/Makefile.gbuild create-partial-info

452
dump-deps:
453
	@$(SRCDIR)/bin/module-deps.pl $(MAKE) $(SRCDIR)/Makefile.gbuild
454

455
dump-deps-png:
456
	@$(SRCDIR)/bin/module-deps.pl $(MAKE) $(SRCDIR)/Makefile.gbuild | dot -Tpng -o lo.png
457

458
dump-deps-sort:
459
	@$(SRCDIR)/bin/module-deps.pl -t $(MAKE) $(SRCDIR)/Makefile.gbuild
460

461 462 463
clang-format-check:
	@$(SRCDIR)/solenv/clang-format/check-last-commit

Bjoern Michaelsen's avatar
Bjoern Michaelsen committed
464
define gb_Top_GbuildToIdeIntegration
465 466 467 468
$(1)-ide-integration: gbuildtojson $(if $(filter MACOSX,$(OS_FOR_BUILD)),python3.all)
	cd $(SRCDIR) && \
		$(if $(filter MACOSX,$(OS_FOR_BUILD)),PATH="$(INSTROOT_FOR_BUILD)/Frameworks/LibreOfficePython.framework/Versions/Current/bin:$(PATH)") \
		$(SRCDIR)/bin/gbuild-to-ide --ide $(1) --make $(MAKE)
469 470 471

endef

472 473
$(foreach ide,\
	codelite \
474
	vs2017 \
475
	kdevelop \
476
	vim \
477
	qtcreator \
jan Iversen's avatar
jan Iversen committed
478 479
	xcode \
        eclipsecdt,\
480
$(eval $(call gb_Top_GbuildToIdeIntegration,$(ide))))
481

482
fuzzers: Library_sal Library_salhelper Library_reg Library_store Library_unoidl codemaker Library_cppu Library_i18nlangtag Library_cppuhelper Library_comphelper StaticLibrary_ulingu StaticLibrary_findsofficepath Library_tl Library_basegfx Library_canvastools Library_cppcanvas Library_dbtools Library_deploymentmisc Library_editeng Library_fwe Library_fwi Library_i18nutil Library_localebe1 Library_sax Library_sofficeapp Library_ucbhelper Rdb_services udkapi offapi Library_gie Library_icg Library_reflection Library_invocadapt Library_bootstrap Library_introspection Library_stocservices Library_xmlreader Library_gcc3_uno instsetoo_native more_fonts StaticLibrary_boost_locale StaticLibrary_fuzzerstubs StaticLibrary_fuzzer_core StaticLibrary_fuzzer_calc StaticLibrary_fuzzer_draw StaticLibrary_fuzzer_writer StaticLibrary_fuzzer_math Library_forui Library_binaryurp Library_io Library_invocation Library_namingservice Library_proxyfac Library_uuresolver Module_ure Executable_pptfuzzer Executable_cgmfuzzer Executable_ww2fuzzer Executable_ww6fuzzer Executable_ww8fuzzer Executable_qpwfuzzer Executable_slkfuzzer Executable_fodtfuzzer Executable_fodsfuzzer Executable_fodpfuzzer Executable_xlsfuzzer Executable_scrtffuzzer Executable_wksfuzzer Executable_diffuzzer Executable_docxfuzzer Executable_xlsxfuzzer Executable_pptxfuzzer Executable_htmlfuzzer Executable_rtffuzzer Executable_mmlfuzzer Executable_mtpfuzzer Executable_olefuzzer Executable_lwpfuzzer Executable_hwpfuzzer Executable_wmffuzzer Executable_dxffuzzer Executable_sftfuzzer Executable_svmfuzzer Executable_tiffuzzer Executable_epsfuzzer Executable_jpgfuzzer Executable_metfuzzer Executable_bmpfuzzer Executable_giffuzzer Executable_pngfuzzer Executable_602fuzzer Executable_tgafuzzer Executable_pcxfuzzer Executable_psdfuzzer Executable_ppmfuzzer Executable_pcdfuzzer Executable_rasfuzzer Executable_pctfuzzer Executable_xpmfuzzer Executable_xbmfuzzer
483

484 485 486
endif # MAKE_RESTARTS

# vim: set noet sw=4 ts=4: