############################################################################# # # COPYRIGHT: (C) 2000-2001 by the GRASS Development Team # # This program is free software under the GNU General Public # License (>=v2). Read the file COPYING that comes with GRASS # for details. # ############################################################################# LOC_DIR = $(GISBASE)/locale MSGFMT = msgfmt LOCALES = ru all: mofiles mofiles: @test -d $(LOC_DIR) || mkdir $(LOC_DIR) for LCL in $(LOCALES) ; do \ NLOC_DIR=$(LOC_DIR)/$$LCL; \ test -d $$NLOC_DIR || mkdir $$NLOC_DIR; \ test -d $$NLOC_DIR/LC_MESSAGES || mkdir $$NLOC_DIR/LC_MESSAGES; \ (cd $$LCL/LC_MESSAGES; \ for h in *.po; do \ test -d $$h && continue; \ $(MSGFMT) $$h -o `basename $$h .po`.mo; \ mv `basename $$h .po`.mo $$NLOC_DIR/LC_MESSAGES; \ done); \ done