2009-03-16 16:35:29 +00:00
|
|
|
# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
|
|
|
|
# vim: tabstop=8
|
2003-05-13 10:28:52 +00:00
|
|
|
# $Id$
|
|
|
|
#
|
2008-04-16 22:40:48 +00:00
|
|
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
2003-05-13 10:28:52 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
2008-04-16 22:40:48 +00:00
|
|
|
# of the License, or (at your option) any later version.
|
2003-05-13 10:28:52 +00:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2009-03-16 16:35:29 +00:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2003-05-13 10:28:52 +00:00
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
2009-03-16 16:35:29 +00:00
|
|
|
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
2003-05-13 10:28:52 +00:00
|
|
|
#
|
|
|
|
# The Original Code is Copyright (C) 2002 by Stichting Blender Foundation,
|
|
|
|
# Amsterdam, the Netherlands.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
2009-05-23 03:24:15 +00:00
|
|
|
# The Original Code is: revision 1.3
|
2003-05-13 10:28:52 +00:00
|
|
|
#
|
2009-03-16 16:35:29 +00:00
|
|
|
# Contributor(s): Wouter van Heyst, GSR
|
2003-05-13 10:28:52 +00:00
|
|
|
#
|
2008-04-16 22:40:48 +00:00
|
|
|
# ***** END GPL LICENSE BLOCK *****
|
2003-05-13 10:28:52 +00:00
|
|
|
#
|
2009-03-16 16:35:29 +00:00
|
|
|
# po Makefile for blender. Compiles the translations in the place
|
2003-05-13 10:28:52 +00:00
|
|
|
# where release can pick them up.
|
|
|
|
|
2009-03-16 16:35:29 +00:00
|
|
|
PO_FILES = $(wildcard *.po)
|
|
|
|
|
|
|
|
LINGUAS = $(basename $(PO_FILES))
|
|
|
|
|
2003-05-13 10:28:52 +00:00
|
|
|
SOURCEDIR = blender/po
|
|
|
|
|
|
|
|
include nan_definitions.mk
|
|
|
|
|
2003-05-13 11:30:22 +00:00
|
|
|
ifeq ($(OS), darwin)
|
2009-03-16 16:35:29 +00:00
|
|
|
DIR = $(OCGDIR)/bin/blender.app/Contents/Resources/locale/
|
2003-05-13 11:30:22 +00:00
|
|
|
else
|
2009-03-16 16:35:29 +00:00
|
|
|
DIR = $(OCGDIR)/bin/.blender/locale/
|
2003-05-13 11:30:22 +00:00
|
|
|
endif
|
2003-05-13 10:28:52 +00:00
|
|
|
|
2009-03-16 16:35:29 +00:00
|
|
|
LINGUAS_DEST= $(foreach LINGUA, $(LINGUAS),$(DIR)$(LINGUA)/LC_MESSAGES/blender.mo)
|
2003-05-13 10:28:52 +00:00
|
|
|
|
2009-03-16 16:35:29 +00:00
|
|
|
$(DIR)%/LC_MESSAGES/blender.mo: %.po
|
|
|
|
mkdir -p $(@D)
|
|
|
|
msgfmt -o $@ $<
|
2009-09-16 17:43:09 +00:00
|
|
|
ifeq ($(BF_VERIFY_MO_FILES), true)
|
2009-05-23 03:24:15 +00:00
|
|
|
@cmp $@ $(NANBLENDERHOME)/bin/.blender/locale/$(basename $<)/LC_MESSAGES/blender.mo \
|
|
|
|
|| ( echo Mismatch between generated and commited $(basename $<).mo catalog && \
|
|
|
|
rm -f $@ && false )
|
2009-09-16 17:43:09 +00:00
|
|
|
endif
|
2003-05-13 10:28:52 +00:00
|
|
|
|
2009-03-16 16:35:29 +00:00
|
|
|
all debug:: $(LINGUAS_DEST)
|
|
|
|
# Just trigger the deps
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -rf $(DIR)
|