xref: /trunk/extras/l10n/util/update_l10n/makefile.mk (revision b3168b84)
18809db7aSAndrew Rist#**************************************************************
2*b3168b84Smseidel#
38809db7aSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
48809db7aSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
58809db7aSAndrew Rist#  distributed with this work for additional information
68809db7aSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
78809db7aSAndrew Rist#  to you under the Apache License, Version 2.0 (the
88809db7aSAndrew Rist#  "License"); you may not use this file except in compliance
98809db7aSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*b3168b84Smseidel#
118809db7aSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*b3168b84Smseidel#
138809db7aSAndrew Rist#  Unless required by applicable law or agreed to in writing,
148809db7aSAndrew Rist#  software distributed under the License is distributed on an
158809db7aSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
168809db7aSAndrew Rist#  KIND, either express or implied.  See the License for the
178809db7aSAndrew Rist#  specific language governing permissions and limitations
188809db7aSAndrew Rist#  under the License.
19*b3168b84Smseidel#
208809db7aSAndrew Rist#**************************************************************
21*b3168b84Smseidel
22*b3168b84Smseidel
23*b3168b84Smseidel
24cdf0e10cSrcweirPRJ=../..
25cdf0e10cSrcweirPRJNAME=l10n
26cdf0e10cSrcweirTARGET=l10n_update
27cdf0e10cSrcweir
28cdf0e10cSrcweir#########################################################################
29cdf0e10cSrcweir#
30*b3168b84Smseidel# Use if you make minor changes in the l10n/*/localize.sdf files to merge the change into the output tree without removing/re-merging everything
31*b3168b84Smseidel#                 ^^^^^ ^^^^^^^
32cdf0e10cSrcweir########################################################################
33cdf0e10cSrcweir
34cdf0e10cSrcweir# --- Targets ------------------------------------------------------
35cdf0e10cSrcweir.INCLUDE : settings.mk
36cdf0e10cSrcweir
37cdf0e10cSrcweir.IF "$(WITH_LANG)" == ""
38cdf0e10cSrcweir
39cdf0e10cSrcweir@all:
40cdf0e10cSrcweir	@echo "Nothing to do - en-US only build."
41cdf0e10cSrcweir.ELSE
42cdf0e10cSrcweir
43cdf0e10cSrcweirall_sdfs:=$(shell ls -1 $(PRJ)$/source$/*$/localize.sdf)
44cdf0e10cSrcweir
45cdf0e10cSrcweir.INCLUDE .IGNORE : $(COMMONMISC)$/sdf$/lock.mk
46cdf0e10cSrcweir
47cdf0e10cSrcweir.INCLUDE : target.mk
48cdf0e10cSrcweir
49cdf0e10cSrcweirALLTAR : $(COMMONMISC)$/merge.done
50cdf0e10cSrcweir
51cdf0e10cSrcweir$(COMMONMISC)$/merge.done : $(all_sdfs)
52cdf0e10cSrcweir	$(foreach,j,$? $(PERL) $(SOLARVER)$/$(INPATH)$/bin$(UPDMINOREXT)$/localize_old.pl -m -v -l all -s $(COMMONMISC)$/sdf -f $j && $(TOUCH) $@ ; )
53cdf0e10cSrcweir
54cdf0e10cSrcweir#$(COMMONMISC)$/merge.done : $(COMMONMISC)/{$(all_sdfs:d:d:f)}_merge.done
55cdf0e10cSrcweir
56cdf0e10cSrcweir#$(COMMONMISC)$/%_merge.done : $(PRJ)/source/%/localize.sdf
57cdf0e10cSrcweir#	$(PERL) $(SOLARVER)$/$(INPATH)$/bin$(UPDMINOREXT)$/localize_old.pl -m -v -l all -s $(COMMONMISC)$/sdf -f $? && $(TOUCH) $@
58cdf0e10cSrcweir
59cdf0e10cSrcweir.ENDIF
60*b3168b84Smseidel
61*b3168b84Smseidel# vim: set noet sw=4 ts=4:
62