"Fossies" - the Fresh Open Source Software Archive

Member "statist-1.4.2/po/Makefile" (17 Sep 2008, 2116 Bytes) of package /linux/privat/old/statist-1.4.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # This file is part of statist
    2 # 
    3 # It is Free Software distributed under the GNU General Public License v>=2.
    4 # See the file COPYING for details.
    5 # 
    6 # Author: 2005 Jakson Alves de Aquino <jakson.alves at ig.com.br>, 2005
    7 
    8 include ../Makefile.inc
    9 
   10 POSTFIX = /LC_MESSAGES
   11 POSTFIXMO = $(POSTFIX)/statist.mo
   12 
   13 SOURCES = ../src/data.c ../src/menue.c ../src/memory_handling.c \
   14   ../src/funcs.c ../src/plot.c ../src/procs.c \
   15   ../src/statist.c ../src/data.h  ../src/funcs.h ../src/gettext.h \
   16   ../src/memory_handling.h ../src/menue.h ../src/plot.h ../src/procs.h \
   17   ../src/statist.h
   18 POFILES = pt_BR.po es_ES.po de_DE.po fr_FR.po it_IT.po
   19 MOFILES = pt_BR.gmo es_ES.gmo de_DE.gmo fr_FR.gmo it_IT.gmo
   20 
   21 .POSIX:
   22 
   23 all: gmo
   24 
   25 help :
   26 	@echo "Type:"
   27 	@echo "make po        : to update the .po files."
   28 	@echo "make gmo       : to create the .gmo files."
   29 	@echo "make noaccents : to copy the .po files into new .po files where"
   30 	@echo "                 all words are without accents."
   31 	@echo "make install   : to copy  the .gmo files to"
   32 	@echo "                 $(MESSAGE_CATALOGS)/xx_XX/$(POSTFIX)/"
   33 
   34 statist.pot: $(SOURCES)
   35 	xgettext -k_ -kN_ -d statist -o statist.pot -s $(SOURCES)
   36 
   37 %.po: statist.pot
   38 	msgmerge -F -U $@ statist.pot
   39 	touch $@
   40 
   41 %.gmo: %.po
   42 	msgfmt -c -v -o $@ $<
   43 
   44 po: $(POFILES)
   45 
   46 gmo: $(MOFILES)
   47 
   48 noaccents:
   49 	@echo "I'm sorry! This option wasn't implemented yet."
   50 
   51 install: $(MOFILES)
   52 	install -d $(MESSAGE_CATALOGS)/pt_BR$(POSTFIX)
   53 	install -d $(MESSAGE_CATALOGS)/de$(POSTFIX)
   54 	install -d $(MESSAGE_CATALOGS)/es$(POSTFIX)
   55 	install -d $(MESSAGE_CATALOGS)/it$(POSTFIX)
   56 	install -d $(MESSAGE_CATALOGS)/fr$(POSTFIX)
   57 	cp pt_BR.gmo $(MESSAGE_CATALOGS)/pt_BR$(POSTFIXMO)
   58 	cp de_DE.gmo $(MESSAGE_CATALOGS)/de$(POSTFIXMO)
   59 	cp es_ES.gmo $(MESSAGE_CATALOGS)/es$(POSTFIXMO)
   60 	cp it_IT.gmo $(MESSAGE_CATALOGS)/it$(POSTFIXMO)
   61 	cp fr_FR.gmo $(MESSAGE_CATALOGS)/fr$(POSTFIXMO)
   62 
   63 uninstall:
   64 	rm -f $(MESSAGE_CATALOGS)/pt_BR$(POSTFIXMO)
   65 	rm -f $(MESSAGE_CATALOGS)/de$(POSTFIXMO)
   66 	rm -f $(MESSAGE_CATALOGS)/es$(POSTFIXMO)
   67 	rm -f $(MESSAGE_CATALOGS)/it$(POSTFIXMO)
   68 	rm -f $(MESSAGE_CATALOGS)/fr$(POSTFIXMO)
   69 
   70 clean:
   71 	-rm *.po~ *.gmo
   72