1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2011 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir# SrsPartMergeTarget class 29*cdf0e10cSrcweir 30*cdf0e10cSrcweirgb_SrsPartMergeTarget_TRANSEXTARGET := $(call gb_Executable_get_target,transex3) 31*cdf0e10cSrcweir# gb_SrsPartMergeTarget_TRANSEXPRECOMMAND is set by the platforms 32*cdf0e10cSrcweir 33*cdf0e10cSrcweirgb_SrsPartMergeTarget_TRANSEXCOMMAND := $(gb_SrsPartMergeTarget_TRANSEXPRECOMMAND) $(gb_SrsPartMergeTarget_TRANSEXTARGET) 34*cdf0e10cSrcweirgb_SrsPartMergeTarget_SDFLOCATION := $(LOCDIR)/l10n/$(INPATH)/misc/sdf/ 35*cdf0e10cSrcweirgb_SrsPartMergeTarget_REPOS := $(gb_REPOS) 36*cdf0e10cSrcweir 37*cdf0e10cSrcweirdefine gb_SrsPartMergeTarget__command 38*cdf0e10cSrcweir$(call gb_Output_announce,$(3),$(true),srs,1) 39*cdf0e10cSrcweir$(call gb_Helper_abbreviate_dirs_native,\ 40*cdf0e10cSrcweir mkdir -p $(dir $(1)) && \ 41*cdf0e10cSrcweir $(gb_SrsPartMergeTarget_TRANSEXCOMMAND) \ 42*cdf0e10cSrcweir -p $(firstword $(subst /, ,$(2))) \ 43*cdf0e10cSrcweir -i $(3) \ 44*cdf0e10cSrcweir -o $(1) \ 45*cdf0e10cSrcweir -m $(SDF) \ 46*cdf0e10cSrcweir -l all) 47*cdf0e10cSrcweir 48*cdf0e10cSrcweirendef 49*cdf0e10cSrcweir 50*cdf0e10cSrcweirdefine gb_SrsPartMergeTarget__rules 51*cdf0e10cSrcweir$$(call gb_SrsPartMergeTarget_get_target,%) : $(1)/% $$(gb_Helper_MISCDUMMY) | $$(gb_SrsPartMergeTarget_TRANSEXTARGET) 52*cdf0e10cSrcweir $$(if $$(SDF),$$(call gb_SrsPartMergeTarget__command,$$@,$$*,$$<),mkdir -p $$(dir $$@) && cp $$< $$@) 53*cdf0e10cSrcweir 54*cdf0e10cSrcweirendef 55*cdf0e10cSrcweir 56*cdf0e10cSrcweir$(foreach repo,$(gb_SrsPartMergeTarget_REPOS),$(eval $(call gb_SrsPartMergeTarget__rules,$(repo)))) 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir# SrsPartTarget class 59*cdf0e10cSrcweir 60*cdf0e10cSrcweirgb_SrsPartTarget_REPOS := $(gb_REPOS) 61*cdf0e10cSrcweir# defined by platform 62*cdf0e10cSrcweir# gb_SrsPartTarget_RSCTARGET 63*cdf0e10cSrcweir# gb_SrsPartTarget_RSCCOMMAND 64*cdf0e10cSrcweir# gb_SrsPartTarget__command_dep 65*cdf0e10cSrcweir 66*cdf0e10cSrcweirdefine gb_SrsPartTarget__command 67*cdf0e10cSrcweir$(call gb_Helper_abbreviate_dirs_native,\ 68*cdf0e10cSrcweir mkdir -p $(dir $(1)) && \ 69*cdf0e10cSrcweir RESPONSEFILE=`$(gb_MKTEMP)` && \ 70*cdf0e10cSrcweir echo "-s \ 71*cdf0e10cSrcweir $(INCLUDE) \ 72*cdf0e10cSrcweir -I$(dir $(3)) \ 73*cdf0e10cSrcweir $(DEFS) \ 74*cdf0e10cSrcweir -fp=$(1) \ 75*cdf0e10cSrcweir $(if $(MERGEDFILE),$(MERGEDFILE),$<)" > $${RESPONSEFILE} && \ 76*cdf0e10cSrcweir $(gb_SrsPartTarget_RSCCOMMAND) -presponse @$${RESPONSEFILE} && \ 77*cdf0e10cSrcweir rm -rf $${RESPONSEFILE}) 78*cdf0e10cSrcweir 79*cdf0e10cSrcweirendef 80*cdf0e10cSrcweir 81*cdf0e10cSrcweirdefine gb_SrsPartTarget__rules 82*cdf0e10cSrcweir$$(call gb_SrsPartTarget_get_target,%) : $(1)/% $$(gb_Helper_MISCDUMMY) | $$(gb_SrsPartTarget_RSCTARGET) 83*cdf0e10cSrcweir $$(call gb_SrsPartTarget__command_dep,$$*,$$<) 84*cdf0e10cSrcweir $$(call gb_SrsPartTarget__command,$$@,$$*,$$<) 85*cdf0e10cSrcweir 86*cdf0e10cSrcweirifeq ($(gb_FULLDEPS),$(true)) 87*cdf0e10cSrcweir$$(call gb_SrsPartTarget_get_dep_target,%) : $(1)/% $$(gb_Helper_MISCDUMMY) 88*cdf0e10cSrcweir $$(call gb_Helper_abbreviate_dirs,\ 89*cdf0e10cSrcweir mkdir -p $$(dir $$@) && \ 90*cdf0e10cSrcweir echo '$$(call gb_SrsPartTarget_get_target,$$*) : $$(gb_Helper_PHONY)' > $$@) 91*cdf0e10cSrcweirendif 92*cdf0e10cSrcweir 93*cdf0e10cSrcweirendef 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir$(foreach repo,$(gb_SrsPartTarget_REPOS),$(eval $(call gb_SrsPartTarget__rules,$(repo)))) 96*cdf0e10cSrcweir 97*cdf0e10cSrcweirifeq ($(gb_FULLDEPS),$(true)) 98*cdf0e10cSrcweir$(call gb_SrsPartTarget_get_dep_target,%) : 99*cdf0e10cSrcweir $(eval $(call gb_Output_error,Unable to find resource definition file $* in repositories: $(gb_SrsPartTarget_REPOS))) 100*cdf0e10cSrcweirendif 101*cdf0e10cSrcweir 102*cdf0e10cSrcweir 103*cdf0e10cSrcweirdefine gb_SrsPartTarget_SrsPartTarget 104*cdf0e10cSrcweirifeq ($(strip $(gb_WITH_LANG)),) 105*cdf0e10cSrcweir$(call gb_SrsPartTarget_get_target,$(1)) : MERGEDFILE := 106*cdf0e10cSrcweirelse 107*cdf0e10cSrcweir$(call gb_SrsPartTarget_get_target,$(1)) : MERGEDFILE := $(call gb_SrsPartMergeTarget_get_target,$(1)) 108*cdf0e10cSrcweir$(call gb_SrsPartTarget_get_target,$(1)) : $(call gb_SrsPartMergeTarget_get_target,$(1)) 109*cdf0e10cSrcweir$(call gb_SrsPartMergeTarget_get_target,$(1)) : SDF := $(realpath $(gb_SrsPartMergeTarget_SDFLOCATION)$(dir $(1))localize.sdf) 110*cdf0e10cSrcweir$(call gb_SrsPartMergeTarget_get_target,$(1)) : $(realpath $(gb_SrsPartMergeTarget_SDFLOCATION)$(dir $(1))localize.sdf) 111*cdf0e10cSrcweirendif 112*cdf0e10cSrcweir 113*cdf0e10cSrcweirendef 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir 116*cdf0e10cSrcweir# SrsTarget class 117*cdf0e10cSrcweir 118*cdf0e10cSrcweirgb_SrsTarget_DEFAULTDEFS := $(gb_GLOBALDEFS) 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir.PHONY : $(call gb_SrsTarget_get_clean_target,%) 121*cdf0e10cSrcweir$(call gb_SrsTarget_get_clean_target,%) : 122*cdf0e10cSrcweir $(call gb_Output_announce,$*,$(false),SRS,1) 123*cdf0e10cSrcweir -$(call gb_Helper_abbreviate_dirs,\ 124*cdf0e10cSrcweir rm -f $(call gb_SrsTarget_get_target,$*) \ 125*cdf0e10cSrcweir $(call gb_SrsTarget_get_dep_target,$*) \ 126*cdf0e10cSrcweir $(foreach part,$(PARTS),$(call gb_SrsPartTarget_get_target,$(part))) \ 127*cdf0e10cSrcweir $(foreach part,$(PARTS),$(call gb_SrsPartTarget_get_dep_target,$(part))) \ 128*cdf0e10cSrcweir $(foreach part,$(PARTS),$(call gb_SrsPartMergeTarget_get_target,$(part)))) 129*cdf0e10cSrcweir 130*cdf0e10cSrcweirifeq ($(gb_FULLDEPS),$(true)) 131*cdf0e10cSrcweirdefine gb_SrsTarget__command_dep 132*cdf0e10cSrcweir$(call gb_Output_announce,SRS:$(2),$(true),DEP,1) 133*cdf0e10cSrcweir$(call gb_Helper_abbreviate_dirs,\ 134*cdf0e10cSrcweir mkdir -p $(dir $(1)) && \ 135*cdf0e10cSrcweir cat $(3) > $(1)) 136*cdf0e10cSrcweirendef 137*cdf0e10cSrcweirendif 138*cdf0e10cSrcweir 139*cdf0e10cSrcweir$(call gb_SrsTarget_get_target,%) : 140*cdf0e10cSrcweir $(call gb_SrsTarget__command_dep,$(call gb_SrsTarget_get_dep_target,$*),$*,$(foreach part,$(PARTS),$(call gb_SrsPartTarget_get_dep_target,$(part)))) 141*cdf0e10cSrcweir $(call gb_Output_announce,$*,$(true),SRS,1) 142*cdf0e10cSrcweir $(call gb_Helper_abbreviate_dirs,\ 143*cdf0e10cSrcweir mkdir -p $(dir $@) && \ 144*cdf0e10cSrcweir cat $^ > $@) 145*cdf0e10cSrcweir 146*cdf0e10cSrcweirifeq ($(gb_FULLDEPS),$(true)) 147*cdf0e10cSrcweir$(call gb_SrsTarget_get_dep_target,%) : 148*cdf0e10cSrcweir $(call gb_SrsTarget__command_dep,$@,$*,$^) 149*cdf0e10cSrcweirendif 150*cdf0e10cSrcweir 151*cdf0e10cSrcweirdefine gb_SrsTarget_SrsTarget 152*cdf0e10cSrcweir$(call gb_SrsTarget_get_target,$(1)) : DEFS := $(gb_SrsTarget_DEFAULTDEFS) 153*cdf0e10cSrcweir$(call gb_SrsTarget_get_target,$(1)) : INCLUDE := $(SOLARINC) 154*cdf0e10cSrcweir$(call gb_SrsTarget_get_clean_target,$(1)) : PARTS := 155*cdf0e10cSrcweir$(call gb_SrsTarget_get_target,$(1)) : PARTS := 156*cdf0e10cSrcweirifeq ($(gb_FULLDEPS),$(true)) 157*cdf0e10cSrcweirifneq ($(wildcard $(call gb_SrsTarget_get_dep_target,$(1))),) 158*cdf0e10cSrcweirinclude $(call gb_SrsTarget_get_dep_target,$(1)) 159*cdf0e10cSrcweirelse 160*cdf0e10cSrcweir$(firstword $(MAKEFILE_LIST)) : $(call gb_SrsTarget_get_dep_target,$(1)) 161*cdf0e10cSrcweirendif 162*cdf0e10cSrcweirendif 163*cdf0e10cSrcweir 164*cdf0e10cSrcweirendef 165*cdf0e10cSrcweir 166*cdf0e10cSrcweirdefine gb_SrsTarget_set_defs 167*cdf0e10cSrcweir$(call gb_SrsTarget_get_target,$(1)) : DEFS := $(2) 168*cdf0e10cSrcweirifeq ($(gb_FULLDEPS),$(true)) 169*cdf0e10cSrcweir$(call gb_SrsTarget_get_dep_target,$(1)) : DEFS := $(2) 170*cdf0e10cSrcweirendif 171*cdf0e10cSrcweir 172*cdf0e10cSrcweirendef 173*cdf0e10cSrcweir 174*cdf0e10cSrcweirdefine gb_SrsTarget_set_include 175*cdf0e10cSrcweir$(call gb_SrsTarget_get_target,$(1)) : INCLUDE := $(2) 176*cdf0e10cSrcweirifeq ($(gb_FULLDEPS),$(true)) 177*cdf0e10cSrcweir$(call gb_SrsTarget_get_dep_target,$(1)) : INCLUDE := $(2) 178*cdf0e10cSrcweirendif 179*cdf0e10cSrcweir 180*cdf0e10cSrcweirendef 181*cdf0e10cSrcweir 182*cdf0e10cSrcweirdefine gb_SrsTarget_add_file 183*cdf0e10cSrcweirifeq ($(gb_FULLDEPS),$(true)) 184*cdf0e10cSrcweir$(call gb_SrsTarget_get_dep_target,$(1)) : $(call gb_SrsPartTarget_get_dep_target,$(2)) 185*cdf0e10cSrcweirendif 186*cdf0e10cSrcweir$(call gb_SrsPartTarget_SrsPartTarget,$(2)) 187*cdf0e10cSrcweir$(call gb_SrsTarget_get_target,$(1)) : $(call gb_SrsPartTarget_get_target,$(2)) 188*cdf0e10cSrcweir$(call gb_SrsTarget_get_clean_target,$(1)) : PARTS += $(2) 189*cdf0e10cSrcweir$(call gb_SrsTarget_get_target,$(1)) : PARTS += $(2) 190*cdf0e10cSrcweir 191*cdf0e10cSrcweirendef 192*cdf0e10cSrcweir 193*cdf0e10cSrcweirdefine gb_SrsTarget_add_files 194*cdf0e10cSrcweir$(foreach file,$(2),$(call gb_SrsTarget_add_file,$(1),$(file))) 195*cdf0e10cSrcweir 196*cdf0e10cSrcweirendef 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir 199*cdf0e10cSrcweir# ResTarget 200*cdf0e10cSrcweir 201*cdf0e10cSrcweirgb_ResTarget_RSCTARGET := $(gb_SrsPartTarget_RSCTARGET) 202*cdf0e10cSrcweirgb_ResTarget_RSCCOMMAND := $(gb_SrsPartTarget_RSCCOMMAND) 203*cdf0e10cSrcweirgb_ResTarget_DEFIMAGESLOCATION := $(SRCDIR)/default_images/ 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir$(call gb_ResTarget_get_clean_target,%) : 206*cdf0e10cSrcweir $(call gb_Output_announce,$*,$(false),RES,2) 207*cdf0e10cSrcweir $(call gb_Helper_abbreviate_dirs,\ 208*cdf0e10cSrcweir rm -f $(call gb_ResTarget_get_target,$*) $(call gb_ResTarget_get_imagelist_target,$*) $(call gb_ResTarget_get_outdir_target,$*) $(call gb_ResTarget_get_outdir_imagelist_target,$*)) 209*cdf0e10cSrcweir 210*cdf0e10cSrcweir$(call gb_ResTarget_get_target,%) : $(gb_Helper_MISCDUMMY) | $(gb_ResTarget_RSCTARGET) 211*cdf0e10cSrcweir $(call gb_Output_announce,$*,$(true),RES,2) 212*cdf0e10cSrcweir $(call gb_Helper_abbreviate_dirs_native,\ 213*cdf0e10cSrcweir mkdir -p $(dir $@) $(OUTDIR)/bin \ 214*cdf0e10cSrcweir $(dir $(call gb_ResTarget_get_imagelist_target,$*)) && \ 215*cdf0e10cSrcweir RESPONSEFILE=`$(gb_MKTEMP)` && \ 216*cdf0e10cSrcweir echo "-r -p \ 217*cdf0e10cSrcweir -lg$(LANGUAGE) \ 218*cdf0e10cSrcweir -fs=$@ \ 219*cdf0e10cSrcweir -lip=$(realpath $(gb_ResTarget_DEFIMAGESLOCATION)$(RESLOCATION)/$(LIBRARY)) \ 220*cdf0e10cSrcweir -lip=$(realpath $(gb_ResTarget_DEFIMAGESLOCATION)$(RESLOCATION)/imglst/$(LANGUAGE)) \ 221*cdf0e10cSrcweir -lip=$(realpath $(gb_ResTarget_DEFIMAGESLOCATION)$(RESLOCATION)/imglst) \ 222*cdf0e10cSrcweir -lip=$(realpath $(gb_ResTarget_DEFIMAGESLOCATION)$(RESLOCATION)/res/$(LANGUAGE)) \ 223*cdf0e10cSrcweir -lip=$(realpath $(gb_ResTarget_DEFIMAGESLOCATION)$(RESLOCATION)/res) \ 224*cdf0e10cSrcweir -lip=$(realpath $(gb_ResTarget_DEFIMAGESLOCATION)$(RESLOCATION)) \ 225*cdf0e10cSrcweir -lip=$(gb_ResTarget_DEFIMAGESLOCATION)res/$(LANGUAGE) \ 226*cdf0e10cSrcweir -lip=$(gb_ResTarget_DEFIMAGESLOCATION)res \ 227*cdf0e10cSrcweir -subMODULE=$(dir $(realpath $(gb_ResTarget_DEFIMAGESLOCATION)$(RESLOCATION))) \ 228*cdf0e10cSrcweir -subGLOBALRES=$(gb_ResTarget_DEFIMAGESLOCATION)res \ 229*cdf0e10cSrcweir -oil=$(dir $(call gb_ResTarget_get_imagelist_target,$*)) \ 230*cdf0e10cSrcweir $(filter-out $(gb_Helper_MISCDUMMY),$^)" > $${RESPONSEFILE} && \ 231*cdf0e10cSrcweir $(gb_ResTarget_RSCCOMMAND) @$${RESPONSEFILE} && \ 232*cdf0e10cSrcweir rm -f $${RESPONSEFILE}) 233*cdf0e10cSrcweir 234*cdf0e10cSrcweir$(call gb_ResTarget_get_outdir_target,%) : 235*cdf0e10cSrcweir $(call gb_Helper_abbreviate_dirs,\ 236*cdf0e10cSrcweir $(call gb_Deliver_deliver,$<,$@) && \ 237*cdf0e10cSrcweir $(call gb_Deliver_deliver,$(dir $<)/$(notdir $(ILSTTARGET)),$(ILSTTARGET))) 238*cdf0e10cSrcweir 239*cdf0e10cSrcweirdefine gb_ResTarget_ResTarget 240*cdf0e10cSrcweir$(call gb_ResTarget_get_target,$(1)) : LIBRARY = $(2) 241*cdf0e10cSrcweir$(call gb_ResTarget_get_target,$(1)) : LANGUAGE = $(3) 242*cdf0e10cSrcweir$(call gb_ResTarget_get_target,$(1)) : RESLOCATION = $(2) 243*cdf0e10cSrcweir$(call gb_AllLangResTarget_get_target,$(2)) : $(call gb_ResTarget_get_outdir_target,$(1)) 244*cdf0e10cSrcweir$(call gb_AllLangResTarget_get_clean_target,$(2)) : $(call gb_ResTarget_get_clean_target,$(1)) 245*cdf0e10cSrcweir$(call gb_ResTarget_get_imagelist_target,$(1)) : $(call gb_ResTarget_get_target,$(1)) 246*cdf0e10cSrcweir 247*cdf0e10cSrcweir$(call gb_ResTarget_get_outdir_target,$(1)) : $(call gb_ResTarget_get_target,$(1)) 248*cdf0e10cSrcweir$(call gb_ResTarget_get_outdir_target,$(1)) : ILSTTARGET = $(call gb_ResTarget_get_outdir_imagelist_target,$(1)) 249*cdf0e10cSrcweir$(call gb_Deliver_add_deliverable,$(call gb_ResTarget_get_outdir_target,$(1)),$(call gb_ResTarget_get_target,$(1))) 250*cdf0e10cSrcweir$(call gb_Deliver_add_deliverable,$(call gb_ResTarget_get_outdir_imagelist_target,$(1)),$(call gb_ResTarget_get_imagelist_target,$(1))) 251*cdf0e10cSrcweir 252*cdf0e10cSrcweirendef 253*cdf0e10cSrcweir 254*cdf0e10cSrcweirdefine gb_ResTarget_add_file 255*cdf0e10cSrcweir$(call gb_ResTarget_get_target,$(1)) : $(2) 256*cdf0e10cSrcweir 257*cdf0e10cSrcweirendef 258*cdf0e10cSrcweir 259*cdf0e10cSrcweirdefine gb_ResTarget_add_one_srs 260*cdf0e10cSrcweir$(call gb_ResTarget_add_file,$(1),$(call gb_SrsTarget_get_target,$(2))) 261*cdf0e10cSrcweir$(call gb_ResTarget_get_clean_target,$(1)) : $(call gb_SrsTarget_get_clean_target,$(2)) 262*cdf0e10cSrcweir 263*cdf0e10cSrcweirendef 264*cdf0e10cSrcweir 265*cdf0e10cSrcweirdefine gb_ResTarget_add_files 266*cdf0e10cSrcweir$(foreach file,$(2),\ 267*cdf0e10cSrcweir $(call gb_ResTarget_add_file,$(1),$(file))) 268*cdf0e10cSrcweir 269*cdf0e10cSrcweirendef 270*cdf0e10cSrcweir 271*cdf0e10cSrcweirdefine gb_ResTarget_add_srs 272*cdf0e10cSrcweir$(foreach srs,$(2),\ 273*cdf0e10cSrcweir $(call gb_ResTarget_add_one_srs,$(1),$(srs))) 274*cdf0e10cSrcweir 275*cdf0e10cSrcweirendef 276*cdf0e10cSrcweir 277*cdf0e10cSrcweirdefine gb_ResTarget_set_reslocation 278*cdf0e10cSrcweir$(call gb_ResTarget_get_target,$(1)) : RESLOCATION = $(2) 279*cdf0e10cSrcweir 280*cdf0e10cSrcweirendef 281*cdf0e10cSrcweir 282*cdf0e10cSrcweir 283*cdf0e10cSrcweir# AllLangResTarget 284*cdf0e10cSrcweir 285*cdf0e10cSrcweirgb_AllLangResTarget_LANGS := en-US $(filter-out en-US,$(gb_WITH_LANG)) 286*cdf0e10cSrcweir 287*cdf0e10cSrcweirdefine gb_AllLangResTarget_set_langs 288*cdf0e10cSrcweirgb_AllLangResTarget_LANGS := $(1) 289*cdf0e10cSrcweirendef 290*cdf0e10cSrcweir 291*cdf0e10cSrcweir$(call gb_AllLangResTarget_get_clean_target,%) : 292*cdf0e10cSrcweir $(call gb_Helper_abbreviate_dirs,\ 293*cdf0e10cSrcweir rm -f $(call gb_AllLangResTarget_get_target,$*)) 294*cdf0e10cSrcweir 295*cdf0e10cSrcweir$(call gb_AllLangResTarget_get_target,%) : 296*cdf0e10cSrcweir $(call gb_Helper_abbreviate_dirs,\ 297*cdf0e10cSrcweir mkdir -p $(dir $@) && touch $@) 298*cdf0e10cSrcweir 299*cdf0e10cSrcweirdefine gb_AllLangResTarget_AllLangResTarget 300*cdf0e10cSrcweir$(foreach lang,$(gb_AllLangResTarget_LANGS),\ 301*cdf0e10cSrcweir $(call gb_ResTarget_ResTarget,$(1)$(lang),$(1),$(lang))) 302*cdf0e10cSrcweir$$(eval $$(call gb_Module_register_target,$(call gb_AllLangResTarget_get_target,$(1)),$(call gb_AllLangResTarget_get_clean_target,$(1)))) 303*cdf0e10cSrcweir 304*cdf0e10cSrcweirendef 305*cdf0e10cSrcweir 306*cdf0e10cSrcweirdefine gb_AllLangResTarget_add_one_srs 307*cdf0e10cSrcweir$(foreach lang,$(gb_AllLangResTarget_LANGS),\ 308*cdf0e10cSrcweir $(call gb_ResTarget_add_one_srs,$(1)$(lang),$(2))) 309*cdf0e10cSrcweir 310*cdf0e10cSrcweirendef 311*cdf0e10cSrcweir 312*cdf0e10cSrcweirdefine gb_AllLangResTarget_add_srs 313*cdf0e10cSrcweir$(foreach srs,$(2),\ 314*cdf0e10cSrcweir $(call gb_AllLangResTarget_add_one_srs,$(1),$(srs))) 315*cdf0e10cSrcweir 316*cdf0e10cSrcweirendef 317*cdf0e10cSrcweir 318*cdf0e10cSrcweirdefine gb_AllLangResTarget_set_reslocation 319*cdf0e10cSrcweir$(foreach lang,$(gb_AllLangResTarget_LANGS),\ 320*cdf0e10cSrcweir $(call gb_ResTarget_set_reslocation,$(1)$(lang),$(2))) 321*cdf0e10cSrcweir 322*cdf0e10cSrcweirendef 323*cdf0e10cSrcweir 324*cdf0e10cSrcweir# vim: set noet sw=4 ts=4: 325