xref: /trunk/extras/l10n/util/update_l10n/makefile.mk (revision b3168b84)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=../..
25PRJNAME=l10n
26TARGET=l10n_update
27
28#########################################################################
29#
30# 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#                 ^^^^^ ^^^^^^^
32########################################################################
33
34# --- Targets ------------------------------------------------------
35.INCLUDE : settings.mk
36
37.IF "$(WITH_LANG)" == ""
38
39@all:
40	@echo "Nothing to do - en-US only build."
41.ELSE
42
43all_sdfs:=$(shell ls -1 $(PRJ)$/source$/*$/localize.sdf)
44
45.INCLUDE .IGNORE : $(COMMONMISC)$/sdf$/lock.mk
46
47.INCLUDE : target.mk
48
49ALLTAR : $(COMMONMISC)$/merge.done
50
51$(COMMONMISC)$/merge.done : $(all_sdfs)
52	$(foreach,j,$? $(PERL) $(SOLARVER)$/$(INPATH)$/bin$(UPDMINOREXT)$/localize_old.pl -m -v -l all -s $(COMMONMISC)$/sdf -f $j && $(TOUCH) $@ ; )
53
54#$(COMMONMISC)$/merge.done : $(COMMONMISC)/{$(all_sdfs:d:d:f)}_merge.done
55
56#$(COMMONMISC)$/%_merge.done : $(PRJ)/source/%/localize.sdf
57#	$(PERL) $(SOLARVER)$/$(INPATH)$/bin$(UPDMINOREXT)$/localize_old.pl -m -v -l all -s $(COMMONMISC)$/sdf -f $? && $(TOUCH) $@
58
59.ENDIF
60
61# vim: set noet sw=4 ts=4:
62