summaryrefslogtreecommitdiffstats
path: root/loader2/Makefile
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-12-03 20:48:03 +0000
committerJeremy Katz <katzj@redhat.com>2002-12-03 20:48:03 +0000
commitd7f878ecd0370b3edfb5da143189d9141d92660a (patch)
treec7abac1c6c103cdcdcae2b2385adf2c7f167f081 /loader2/Makefile
parentfda8f4f2f7522b2155a2b0547d0b89dacf10563b (diff)
downloadanaconda-d7f878ecd0370b3edfb5da143189d9141d92660a.tar.gz
anaconda-d7f878ecd0370b3edfb5da143189d9141d92660a.tar.xz
anaconda-d7f878ecd0370b3edfb5da143189d9141d92660a.zip
translations for the loader return
Diffstat (limited to 'loader2/Makefile')
-rw-r--r--loader2/Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/loader2/Makefile b/loader2/Makefile
index 1af95a3da..b367ae3ac 100644
--- a/loader2/Makefile
+++ b/loader2/Makefile
@@ -58,7 +58,23 @@ COPTS += -DUSE_LOGDEV
ISYSLIB += -lrpc
endif
-all: $(BINS)
+# translation stuff
+LANGS = $(shell awk '{ print $$2 }' ../lang-table | egrep -v '(^en$$)')
+
+TR = $(patsubst %,tr/%.tr,$(LANGS))
+TRFILES = $(patsubst %,%.tr,$(LANGS))
+
+all: $(BINS) loader.tr
+
+loader.tr: $(TR) ../lang-table
+ (cd tr; ls $(TRFILES) | cpio --quiet -Hcrc -o |gzip -9) > $@
+
+tr/%.tr: ../po/%.po loader.po
+ msgmerge $< loader.po | ./simplemot > $@
+
+loader.po: $(wildcard *.c)
+ xgettext --default-domain=loader --add-comments \
+ --keyword=_ --keyword=N_ *.c
init: init.o
$(CC) $(STATIC) $(COPTS) $(LDFLAGS) -o $@ init.o