From f0492b5054bcf1d8c31e0a4bfbf521334bcd7326 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 14 Mar 2008 11:00:41 +0000 Subject: introduce PGOAL --- po/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'po/Makefile') diff --git a/po/Makefile b/po/Makefile index 06ade36..8e25445 100644 --- a/po/Makefile +++ b/po/Makefile @@ -1,5 +1,6 @@ POFILES = $(wildcard *.po) TEXTS = $(addsuffix .tr,$(basename $(wildcard *.po))) +PGOAL: bootloader PRODUCT ?= "SUSE Linux 10.1" @@ -10,21 +11,21 @@ all: text.inc $(TEXTS) # to ensure that %.tr: %.po text.inc msgfmt $< -o - | msgunfmt | \ - msgmerge --no-fuzzy-matching - bootloader.pot > tmpfile.po && \ + msgmerge --no-fuzzy-matching - $(PGOAL).pot > tmpfile.po && \ bin/po2txt --product=$(PRODUCT) tmpfile.po >$@ echo rm -f tmpfile.po -# en.tr uses msgids from bootloader.pot -en.tr text.inc: bootloader.pot +# en.tr uses msgids from $(PGOAL).pot +en.tr text.inc: $(PGOAL).pot bin/po2txt --product=$(PRODUCT) $< >en.tr clean: rm -f text.inc *.tr *~ -merge: bootloader.pot +merge: $(PGOAL).pot for n in *.po; do \ echo "Merging $$n"; \ - msgmerge -C $$n $$n bootloader.pot > "$$n"t ; \ + msgmerge -C $$n $$n $(PGOAL).pot > "$$n"t ; \ mv -f "$$n"t $$n ; \ done -- cgit v1.2.1