1 # -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
5 # ***** BEGIN GPL LICENSE BLOCK *****
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software Foundation,
19 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 # The Original Code is Copyright (C) 2002 by Stichting Blender Foundation,
22 # Amsterdam, the Netherlands.
23 # All rights reserved.
25 # The Original Code is: revision 1.3
27 # Contributor(s): Wouter van Heyst, GSR
29 # ***** END GPL LICENSE BLOCK *****
31 # po Makefile for blender. Compiles the translations in the place
32 # where release can pick them up.
34 PO_FILES = $(wildcard *.po)
36 LINGUAS = $(basename $(PO_FILES))
38 SOURCEDIR = blender/po
40 include nan_definitions.mk
43 DIR = $(OCGDIR)/bin/blender.app/Contents/Resources/locale/
45 DIR = $(OCGDIR)/bin/.blender/locale/
48 LINGUAS_DEST= $(foreach LINGUA, $(LINGUAS),$(DIR)$(LINGUA)/LC_MESSAGES/blender.mo)
50 $(DIR)%/LC_MESSAGES/blender.mo: %.po
53 @cmp $@ $(NANBLENDERHOME)/bin/.blender/locale/$(basename $<)/LC_MESSAGES/blender.mo \
54 || ( echo Mismatch between generated and commited $(basename $<).mo catalog && \
57 all debug:: $(LINGUAS_DEST)
58 # Just trigger the deps