summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile34
1 files changed, 10 insertions, 24 deletions
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/*~