Update git submodules
[LibreOffice.git] / cli_ure / CustomTarget_cli_ure_assemblies.mk
blob260a52b25fec49aeca29d726f6878439895e506e
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 cli_ure_source_MAKEFILE := $(lastword $(MAKEFILE_LIST))
12 include $(SRCDIR)/cli_ure/version/version.txt
14 $(eval $(call gb_CustomTarget_CustomTarget,cli_ure/source))
16 $(call gb_CustomTarget_get_target,cli_ure/source) : \
17 $(call gb_CustomTarget_get_workdir,cli_ure/source)/basetypes/assembly.cs \
18 $(call gb_CustomTarget_get_workdir,cli_ure/source)/native/assembly.cxx \
19 $(call gb_CustomTarget_get_workdir,cli_ure/source)/ure/assembly.cs
21 $(call gb_CustomTarget_get_workdir,cli_ure/source)/basetypes/assembly.cs : \
22 $(SRCDIR)/cli_ure/source/basetypes/assembly.cs \
23 $(SRCDIR)/cli_ure/version/version.txt \
24 $(cli_ure_source_MAKEFILE) \
25 | $(call gb_CustomTarget_get_workdir,cli_ure/source)/basetypes/.dir
27 $(call gb_CustomTarget_get_workdir,cli_ure/source)/native/assembly.cxx : \
28 $(SRCDIR)/cli_ure/source/native/assembly.cxx \
29 $(SRCDIR)/cli_ure/version/version.txt \
30 $(cli_ure_source_MAKEFILE) \
31 | $(call gb_CustomTarget_get_workdir,cli_ure/source)/native/.dir
33 $(call gb_CustomTarget_get_workdir,cli_ure/source)/ure/assembly.cs : \
34 $(SRCDIR)/cli_ure/source/ure/assembly.cs \
35 $(SRCDIR)/cli_ure/version/version.txt \
36 $(cli_ure_source_MAKEFILE) \
37 | $(call gb_CustomTarget_get_workdir,cli_ure/source)/ure/.dir
39 $(call gb_CustomTarget_get_workdir,cli_ure/source)/basetypes/assembly.cs :
40 sed -e "s/@CLI_BASETYPES_NEW_VERSION@/$(CLI_BASETYPES_NEW_VERSION)/g" \
41 < $< > $@.tmp && \
42 mv $@.tmp $@
44 # TODO use macros for this
45 $(call gb_CustomTarget_get_workdir,cli_ure/source)/native/assembly.cxx :
46 sed -e "s/@CLI_CPPUHELPER_NEW_VERSION@/$(CLI_CPPUHELPER_NEW_VERSION)/g" \
47 < $< > $@.tmp && \
48 mv $@.tmp $@
50 $(call gb_CustomTarget_get_workdir,cli_ure/source)/ure/assembly.cs :
51 sed -e "s/@CLI_URE_NEW_VERSION@/$(CLI_URE_NEW_VERSION)/g" \
52 < $< > $@.tmp && \
53 mv $@.tmp $@
55 # vim: set noet sw=4 ts=4: