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 $(eval
$(call gb_CustomTarget_CustomTarget
,odk
/settings
))
12 $(eval
$(call gb_CustomTarget_register_target
,odk
/settings
,dk.mk
))
14 $(call gb_CustomTarget_get_workdir
,odk
/settings
)/dk.mk
: $(SRCDIR
)/odk
/settings
/dk.mk
15 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),build
,SED
,1)
16 tr
-d
"\015" < $< | sed \
17 -e
's/@@PLATFORM@@/$(firstword $(subst _, ,$(PLATFORMID)))/' \
18 -e
's/@@PROCTYPE@@/$(subst $(WHITESPACE),_,$(wordlist 2,$(words $(subst _, ,$(PLATFORMID))),$(subst _, ,$(PLATFORMID))))/' \
19 -e
's/@@RELEASE@@/$(PRODUCTVERSION)/' \
20 -e
's/@@BUILDID@@/$(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)/' \
21 -e
's/@@ENABLE_DBGUTIL@@/$(ENABLE_DBGUTIL)/' > $@
23 # vim: set noet sw=4 ts=4: