xref: /netbsd-src/external/gpl2/lvm2/dist/po/Makefile.in (revision de4fa6c51a9708fc05f88b618fa6fad87c9508ec)
1#
2# Copyright (C) 2004 Red Hat, Inc. All rights reserved.
3#
4# This file is part of LVM2.
5#
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.
9#
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
13
14srcdir = @srcdir@
15top_srcdir = @top_srcdir@
16VPATH = @srcdir@
17
18LANGS=de
19
20TARGETS=$(LANGS:%=lvm2_%.mo) $(LANGS:%=dm_%.mo)
21
22DM_POSOURCES = $(top_srcdir)/dmsetup/*.pot $(top_srcdir)/libdm/*.pot \
23	       $(top_srcdir)/libdm/*/*.pot
24
25LVM_POSOURCES = $(top_srcdir)/tools/*.pot $(top_srcdir)/lib/*/*.pot
26
27include $(top_srcdir)/make.tmpl
28
29lvm2.po: Makefile $(LVM_POSOURCES)
30	@echo Compiling string table
31	@xgettext -C -F --keyword=print_log --keyword=log_debug \
32		--keyword=log_info --keyword=_ --keyword=N_ \
33		--keyword=log_notice --keyword=log_warn --keyword=log_err \
34		--keyword=log_fatal --keyword=log_debug --keyword=log_error \
35		--keyword=log_print --keyword=log_verbose \
36		--keyword=log_very_verbose -d - \
37		$(LVM_POSOURCES) > $@
38
39device-mapper.po: Makefile $(DM_POSOURCES)
40	@echo Compiling string table
41	@xgettext -C -F --keyword=dm_log --keyword=log_debug \
42		--keyword=log_info --keyword=_ --keyword=N_ \
43		--keyword=log_notice --keyword=log_warn --keyword=log_err \
44		--keyword=log_fatal --keyword=log_debug --keyword=log_error \
45		--keyword=log_print --keyword=log_verbose \
46		--keyword=log_very_verbose -d - \
47		$(DM_POSOURCES) > $@
48
49pofile: lvm2.po device-mapper.po
50
51# FIXME
52install: $(TARGETS)
53	@echo Installing translation files in $(localedir)
54	@( \
55		for lang in $(LANGS); do \
56			$(INSTALL) -D $(OWNER) $(GROUP) -m 444 $$lang.mo \
57			    $(localedir)/$$lang/LC_MESSAGES/lvm2.mo;\
58	  done; \
59	)
60	@( \
61		for lang in $(LANGS); do \
62			$(INSTALL) -D $(OWNER) $(GROUP) -m 444 $$lang.mo \
63			    $(localedir)/$$lang/LC_MESSAGES/device-mapper.mo;\
64	  done; \
65	)
66