bump product version to 6.4.0.3
[LibreOffice.git] / editeng / CustomTarget_generated.mk
blobc47dda3ecc57c5489ec07eb9bea54b0f745596d4
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_PL := $(SRCDIR)/solenv/bin/gentoken.pl
14 editeng_INC := $(call gb_CustomTarget_get_workdir,editeng/generated)
16 $(editeng_INC)/tokens.hxx $(editeng_INC)/tokens.gperf : $(editeng_SRC)/tokens.txt $(editeng_PL)
17 mkdir -p $(editeng_INC)
18 $(PERL) $(editeng_PL) $(editeng_SRC)/tokens.txt $(editeng_INC)/tokens.gperf
20 $(editeng_INC)/tokens.cxx : $(editeng_INC)/tokens.gperf
21 $(GPERF) --compare-strncmp --readonly-tables --output-file=$(editeng_INC)/tokens.cxx $(editeng_INC)/tokens.gperf
22 sed -i $(if $(filter MACOSX,$(OS_FOR_BUILD)),'') -e "s/(char\*)0/(char\*)0, XML_TOKEN_INVALID/g" $(editeng_INC)/tokens.cxx
23 sed -i $(if $(filter MACOSX,$(OS_FOR_BUILD)),'') -e "/^#line/d" $(editeng_INC)/tokens.cxx
25 $(call gb_CustomTarget_get_target,editeng/generated) : $(editeng_INC)/tokens.cxx
27 # vim: set noet sw=4 ts=4: