From 0782ad5002b303ae2b8e353509102b4822927ea8 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Sat, 1 Nov 2008 02:19:19 +0000 Subject: further progress --- po/Makefile.in | 48 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 14 deletions(-) (limited to 'po') diff --git a/po/Makefile.in b/po/Makefile.in index d4dba36fe..64e882fdf 100644 --- a/po/Makefile.in +++ b/po/Makefile.in @@ -17,22 +17,16 @@ VPATH = @srcdir@ LANGS=de -TARGETS=$(LANGS:%=%.mo) +TARGETS=$(LANGS:%=lvm2_%.mo) $(LANGS:%=dm_%.mo) -include $(top_srcdir)/make.tmpl +DM_POSOURCES = $(top_srcdir)/dmsetup/*.pot $(top_srcdir)/libdm/*.pot \ + $(top_srcdir)/libdm/*/*.pot -install: $(TARGETS) - @echo Installing translation files in $(localedir) - @( \ - for lang in $(LANGS); do \ - $(INSTALL) -D $(OWNER) $(GROUP) -m 444 $$lang.mo \ - $(localedir)/$$lang/LC_MESSAGES/@INTL_PACKAGE@.mo;\ - done; \ - ) +LVM_POSOURCES = $(top_srcdir)/tools/*.pot $(top_srcdir)/lib/*/*.pot -pofile: lvm2.po +include $(top_srcdir)/make.tmpl -lvm2.po: Makefile $(top_srcdir)/tools/*.pot $(top_srcdir)/lib/*/*.pot +lvm2.po: Makefile $(LVM_POSOURCES) @echo Compiling string table @xgettext -C -F --keyword=print_log --keyword=log_debug \ --keyword=log_info --keyword=_ --keyword=N_ \ @@ -40,6 +34,32 @@ lvm2.po: Makefile $(top_srcdir)/tools/*.pot $(top_srcdir)/lib/*/*.pot --keyword=log_fatal --keyword=log_debug --keyword=log_error \ --keyword=log_print --keyword=log_verbose \ --keyword=log_very_verbose -d - \ - $(top_srcdir)/tools/*.pot $(top_srcdir)/lib/*/*.pot \ - > $@ + $(LVM_POSOURCES) > $@ +device-mapper.po: Makefile $(DM_POSOURCES) + @echo Compiling string table + @xgettext -C -F --keyword=dm_log --keyword=log_debug \ + --keyword=log_info --keyword=_ --keyword=N_ \ + --keyword=log_notice --keyword=log_warn --keyword=log_err \ + --keyword=log_fatal --keyword=log_debug --keyword=log_error \ + --keyword=log_print --keyword=log_verbose \ + --keyword=log_very_verbose -d - \ + $(DM_POSOURCES) > $@ + +pofile: lvm2.po device-mapper.po + +# FIXME +install: $(TARGETS) + @echo Installing translation files in $(localedir) + @( \ + for lang in $(LANGS); do \ + $(INSTALL) -D $(OWNER) $(GROUP) -m 444 $$lang.mo \ + $(localedir)/$$lang/LC_MESSAGES/lvm2.mo;\ + done; \ + ) + @( \ + for lang in $(LANGS); do \ + $(INSTALL) -D $(OWNER) $(GROUP) -m 444 $$lang.mo \ + $(localedir)/$$lang/LC_MESSAGES/device-mapper.mo;\ + done; \ + ) -- cgit v1.2.1