Makefile.in 18.5 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 65 66 67 68 69
		echo; \
		echo 'No. You make ME a sandwich.'; \
		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
	rm -fr $(WORKDIR)
jan Iversen's avatar
jan Iversen committed
181 182 183
ifeq ($(OS),IOS)
	rm -fr $(SRCDIR)/ios/generated
endif
184 185

clean-build:
186
ifneq ($(CROSS_COMPILING),)
187
	rm -fr $(INSTDIR_FOR_BUILD)
Matúš Kukan's avatar
Matúš Kukan committed
188
	rm -fr $(WORKDIR_FOR_BUILD)
189 190 191 192 193 194 195 196
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
197 198 199 200 201 202 203 204 205 206 207 208
endif

include $(SRCDIR)/compilerplugins/Makefile.mk

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

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

#
# Fetch
#
238
ifneq ($(DO_FETCH_TARBALLS),)
239 240 241 242 243 244
include $(SRCDIR)/Makefile.fetch
fetch: download
fetch: get-submodules

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

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)),\
259
		$(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))
260 261 262 263 264 265 266 267 268 269 270 271 272
	$(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

#
273
# Bootstrap
274
#
275
bootstrap: check-if-root compilerplugins
276 277 278 279

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

291 292
build-non-l10n-only build-l10n-only build-nocheck check debugrun translations packageinfo $(gb_Top_MODULE_CHECK_TARGETS): build

293
help showmodules gbuildtojson:
294
	$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
295

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

303 304 305 306 307 308
install-gdb-printers:
ifneq ($(filter-out WNT MACOSX IOS,$(OS)),)
	mkdir -p $(INSTDIR)
	$(SRCDIR)/solenv/bin/install-gdb-printers -a $(INSTDIR) -c
endif

309

310 311 312 313
#
# Install
#

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

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)
339
install:
340 341
	@$(call gb_Top_DoInstall,Installing,)
	@$(call gb_Top_InstallFinished,Installation,$(INSTALLDIR))
342 343

install-strip:
344 345
	@$(call gb_Top_DoInstall,Installing and stripping binaries,--strip)
	@$(call gb_Top_InstallFinished,Installation,$(INSTALLDIR))
346 347
endif # !MACOSX

348
test-install: build
349
	@rm -rf $(TESTINSTALLDIR)
350
	@mkdir -p $(TESTINSTALLDIR)
351
ifeq ($(OS_FOR_BUILD),WNT)
352
	cd $(SRCDIR)/instsetoo_native && $(MAKE) LIBO_TEST_INSTALL=TRUE $(GMAKE_OPTIONS)
353
else
354
	@$(SRCDIR)/solenv/bin/ooinstall $(TESTINSTALLDIR)
355
ifneq ($(MACOSX_CODESIGNING_IDENTITY),)
356 357 358
#
# Create Resources/*.lproj directories for languages supported by OS X
	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 \
359 360
		lproj=$(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Resources/$$lang.lproj; \
		mkdir "$$lproj"; \
361
	done
362
#
363
# And remove the "bin" folder which should not be there
364
	rm -rf $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/bin
365 366
#
# Remove unnecessary executables in the LibreOfficePython framework
367
	rm -rf $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Frameworks/LibreOfficePython.framework/Versions/[1-9]*/bin
368 369 370
#
# 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.
371
	rm -rf $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Frameworks/LibreOfficePython.framework/Versions/[1-9]*/lib/python[1-9]*/config-[1-9]*
372
#
Stephan Bergmann's avatar
Stephan Bergmann committed
373
ifneq ($(ENABLE_MACOSX_SANDBOX),)
374 375 376

# 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
377
# survive upload to the App Store anyway. See
378 379 380 381
# 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.
382 383
	rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/gengal
	rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/unopkg
384
	rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/unoinfo
385 386 387
endif
#
# Then use the macosx-codesign-app-bundle script
388
	@$(SRCDIR)/solenv/bin/macosx-codesign-app-bundle $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app
389
endif
390
endif
391
	@$(call gb_Top_InstallFinished,Test Installation,$(TESTINSTALLDIR))
392

393 394
mac-app-store-package: test-install
ifneq ($(MACOSX_PACKAGE_SIGNING_IDENTITY),)
395 396 397
	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
398 399 400 401 402
else
	@echo You did not provide an installer signing identity with --enable-macosx-package-signing
	@exit 1
endif

403
distro-pack-install: install
404 405 406 407
	$(SRCDIR)/bin/distro-install-clean-up
	$(SRCDIR)/bin/distro-install-desktop-integration
	$(SRCDIR)/bin/distro-install-sdk
	$(SRCDIR)/bin/distro-install-file-lists
408

409
install-package-%:
410
	$(MAKE) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
411

412
id:
413
	@$(SRCDIR)/solenv/bin/create-ids
414 415

tags:
416
	@$(SRCDIR)/solenv/bin/create-tags
417

418
etags:
419
	@$(SRCDIR)/solenv/bin/create-tags -e
420

421
docs:
422
	@$(SRCDIR)/solenv/bin/mkdocs.sh $(SRCDIR)/docs $(SRCDIR)/solenv/inc/doxygen.cfg
423

424
findunusedheaders:
425
	$(SRCDIR)/bin/find-unusedheaders.py
426

427
symbols:
428
	rm -fr $(WORKDIR)/symbols/
429
	mkdir -p $(WORKDIR)/symbols/
430 431
ifeq ($(OS),WNT)
	$(SRCDIR)/bin/symbolstore.py $(WORKDIR)/UnpackedTarball/breakpad/src/tools/windows/binaries/dump_syms.exe $(WORKDIR)/symbols/ $(INSTDIR)/program/*
432
	$(SRCDIR)/bin/symstore.sh
433
else
434
	$(SRCDIR)/bin/symbolstore.py $(WORKDIR)/UnpackedTarball/breakpad/src/tools/linux/dump_syms/dump_syms $(WORKDIR)/symbols/ $(INSTDIR)/program/*
435 436
endif

437
	cd $(WORKDIR)/symbols/ && zip -r $(WORKDIR)/symbols.zip *
438

439 440 441 442 443 444 445 446
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/*/

447 448 449
upload-symbols:
	$(MAKE) -f $(SRCDIR)/Makefile.gbuild upload-symbols

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

453 454 455
upload-update-info:
	$(MAKE) -f $(SRCDIR)/Makefile.gbuild upload-update-info

456 457 458
create-partial-info:
	$(MAKE) -f $(SRCDIR)/Makefile.gbuild create-partial-info

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

462
dump-deps-png:
463
	@$(SRCDIR)/bin/module-deps.pl $(MAKE) $(SRCDIR)/Makefile.gbuild | dot -Tpng -o lo.png
464

465
dump-deps-sort:
466
	@$(SRCDIR)/bin/module-deps.pl -t $(MAKE) $(SRCDIR)/Makefile.gbuild
467

468 469 470
clang-format-check:
	@$(SRCDIR)/solenv/clang-format/check-last-commit

Bjoern Michaelsen's avatar
Bjoern Michaelsen committed
471
define gb_Top_GbuildToIdeIntegration
472 473 474 475
$(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)
476 477 478

endef

479 480
$(foreach ide,\
	codelite \
481
	vs2015 \
482
	kdevelop \
483
	vim \
484
	qtcreator \
jan Iversen's avatar
jan Iversen committed
485 486
	xcode \
        eclipsecdt,\
487
$(eval $(call gb_Top_GbuildToIdeIntegration,$(ide))))
488

489
# disable for now these fuzzers that haven't found anything for months and months to reduce output size to get something to fit in available oss-fuzz build space
Caolán McNamara's avatar
Caolán McNamara committed
490 491
# Executable_xbmfuzzer Executable_xpmfuzzer Executable_pctfuzzer Executable_rasfuzzer Executable_pcdfuzzer
# Executable_ppmfuzzer Executable_psdfuzzer Executable_pcxfuzzer Executable_tgafuzzer Executable_602fuzzer
492
# Executable_pngfuzzer Executable_giffuzzer Executable_bmpfuzzer Executable_metfuzzer Executable_jpgfuzzer
493 494 495 496
# Executable_epsfuzzer Executable_tiffuzzer Executable_svmfuzzer Executable_sftfuzzer Executable_dxffuzzer
# Executable_wmffuzzer Executable_hwpfuzzer Executable_lwpfuzzer Executable_olefuzzer Executable_mtpfuzzer
# Executable_mmlfuzzer Executable_rtffuzzer
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_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
497

498 499 500
endif # MAKE_RESTARTS

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