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