Bump version to 24.04.3.4
[LibreOffice.git] / editeng / CustomTarget_generated.mk
blob77fb4f7bf383d41c3cd666adb79f4ee4d95750a8
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,editeng/generated))
12 editeng_SRC := $(SRCDIR)/editeng/source/misc
13 editeng_PY := $(SRCDIR)/solenv/bin/gentoken.py
14 editeng_INC := $(call gb_CustomTarget_get_workdir,editeng/generated)
16 $(editeng_INC)/tokens.hxx $(editeng_INC)/tokens.gperf : $(editeng_SRC)/tokens.txt $(editeng_PY) \
17 $(call gb_ExternalExecutable_get_dependencies,python)
18 mkdir -p $(editeng_INC)
19 $(call gb_ExternalExecutable_get_command,python) $(editeng_PY) $(editeng_SRC)/tokens.txt $(editeng_INC)/tokens.gperf
21 $(editeng_INC)/tokens.cxx : $(editeng_INC)/tokens.gperf
22 $(GPERF) --compare-strncmp --readonly-tables --output-file=$(editeng_INC)/tokens.cxx $(editeng_INC)/tokens.gperf
23 sed -i $(if $(filter MACOSX,$(OS_FOR_BUILD)),'') -e "s/(char\*)0/(char\*)0, XML_TOKEN_INVALID/g" $(editeng_INC)/tokens.cxx
24 sed -i $(if $(filter MACOSX,$(OS_FOR_BUILD)),'') -e "/^#line/d" $(editeng_INC)/tokens.cxx
26 $(call gb_CustomTarget_get_target,editeng/generated) : $(editeng_INC)/tokens.cxx
28 # vim: set noet sw=4 ts=4: