From 5ce8d30439463838f845c78bc926cc9b310a8743 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 27 Jan 2009 17:30:08 +0000 Subject: imported openSUSE.tar.bz2 (from gfxboot-4.1.19-2.1.src.rpm) --- po/Makefile | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) (limited to 'po/Makefile') diff --git a/po/Makefile b/po/Makefile index d561e83..b120b47 100644 --- a/po/Makefile +++ b/po/Makefile @@ -1,33 +1,19 @@ POFILES = $(wildcard *.po) TEXTS = $(addsuffix .tr,$(basename $(wildcard *.po))) -PGOAL= bootloader -PRODUCT ?= "SUSE Linux 10.1" +PRODUCT = $(shell perl -ne 'print if s/^product=//' ../config) -all: text.inc $(TEXTS) +all: .ready + +.ready: text.inc $(TEXTS) + @touch .ready -# the po2txt script requires that the po file has no fuzzy entries -# and the same comments as the pot file; so we do a msgfmt/msgunfmt/msgmerge -# to ensure that %.tr: %.po text.inc - msgfmt $< -o - | msgunfmt | \ - msgmerge --no-fuzzy-matching - $(PGOAL).pot > tmpfile.po && \ - bin/po2txt --product=$(PRODUCT) tmpfile.po >$@ - echo rm -f tmpfile.po + bin/po2txt --product='$(PRODUCT)' $< >$@ -# en.tr uses msgids from $(PGOAL).pot -en.tr text.inc: $(PGOAL).pot - bin/po2txt --product=$(PRODUCT) $< >en.tr +# en.tr uses msgids from bootloader.pot +en.tr text.inc: bootloader.pot + bin/po2txt --product='$(PRODUCT)' $< >en.tr clean: - rm -f text.inc *.tr *~ - - -update_n_merge: $(PGOAL).pot merge - -merge: - for n in *.po; do \ - echo "Merging $$n"; \ - msgmerge -C $$n $$n $(PGOAL).pot > "$$n"t ; \ - mv -f "$$n"t $$n ; \ - done + rm -f .ready text.inc *.tr *~ talk/*~ -- cgit v1.2.1