Sync usage with man page.
[netbsd-mini2440.git] / external / gpl2 / lvm2 / dist / po / Makefile
blob0b953f3943954b9e1161000c16e61d9c2e050366
2 # Copyright (C) 2004 Red Hat, Inc. All rights reserved.
4 # This file is part of LVM2.
6 # This copyrighted material is made available to anyone wishing to use,
7 # modify, copy, or redistribute it subject to the terms and conditions
8 # of the GNU General Public License v.2.
10 # You should have received a copy of the GNU General Public License
11 # along with this program; if not, write to the Free Software Foundation,
12 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14 srcdir = .
15 top_srcdir = ..
16 top_builddir = ..
19 LANGS=de
21 TARGETS=$(LANGS:%=lvm2_%.mo) $(LANGS:%=dm_%.mo)
23 DM_POSOURCES = $(top_srcdir)/dmsetup/*.pot $(top_srcdir)/libdm/*.pot \
24 $(top_srcdir)/libdm/*/*.pot
26 LVM_POSOURCES = $(top_srcdir)/tools/*.pot $(top_srcdir)/lib/*/*.pot
28 include ../make.tmpl
30 lvm2.po: Makefile $(LVM_POSOURCES)
31 @echo Compiling string table
32 @xgettext -C -F --keyword=print_log --keyword=log_debug \
33 --keyword=log_info --keyword=_ --keyword=N_ \
34 --keyword=log_notice --keyword=log_warn --keyword=log_err \
35 --keyword=log_fatal --keyword=log_debug --keyword=log_error \
36 --keyword=log_print --keyword=log_verbose \
37 --keyword=log_very_verbose -d - \
38 $(LVM_POSOURCES) > $@
40 device-mapper.po: Makefile $(DM_POSOURCES)
41 @echo Compiling string table
42 @xgettext -C -F --keyword=dm_log --keyword=log_debug \
43 --keyword=log_info --keyword=_ --keyword=N_ \
44 --keyword=log_notice --keyword=log_warn --keyword=log_err \
45 --keyword=log_fatal --keyword=log_debug --keyword=log_error \
46 --keyword=log_print --keyword=log_verbose \
47 --keyword=log_very_verbose -d - \
48 $(DM_POSOURCES) > $@
50 pofile: lvm2.po device-mapper.po
52 # FIXME
53 install: $(TARGETS)
54 @echo Installing translation files in $(localedir)
55 @( \
56 for lang in $(LANGS); do \
57 $(INSTALL) -D $(OWNER) $(GROUP) -m 444 $$lang.mo \
58 $(localedir)/$$lang/LC_MESSAGES/lvm2.mo;\
59 done; \
61 @( \
62 for lang in $(LANGS); do \
63 $(INSTALL) -D $(OWNER) $(GROUP) -m 444 $$lang.mo \
64 $(localedir)/$$lang/LC_MESSAGES/device-mapper.mo;\
65 done; \