summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--po/Makefile11
1 files changed, 6 insertions, 5 deletions
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