e050b09c7e
This is a hack, because make has no way to serialize processing of a target (just .NOTPARALLEL for the whole Makefile). It uses the lockfile tool / liblockfile 1.17. Since that polls the file, I adjusted the poll timeout to 5s max, because I found the 60s wait much too long. Guess even 1s would be ok... Since it's just a small build tool, I simply copied and patched its source, instead of creating an external project. And there is --with-system-lockfile=... to use an external binary instead. Change-Id: I16bc4579a273dcf1aac811ae4723ca325a0b9eba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126152 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
25 lines
741 B
Makefile
25 lines
741 B
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# 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/.
|
|
#
|
|
|
|
$(eval $(call gb_Executable_Executable,lockfile))
|
|
|
|
$(eval $(call gb_Executable_set_warnings_not_errors,lockfile))
|
|
|
|
$(eval $(call gb_Executable_set_include,lockfile, \
|
|
-I$(SRCDIR)/solenv/lockfile \
|
|
-I$(BUILDDIR)/solenv/lockfile \
|
|
))
|
|
|
|
$(eval $(call gb_Executable_add_cobjects,lockfile, \
|
|
solenv/lockfile/dotlockfile \
|
|
solenv/lockfile/lockfile \
|
|
, $(gb_COMPILEROPTFLAGS) \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|