]>
Commit | Line | Data |
---|---|---|
69792976 | 1 | # |
6606c3ae | 2 | # Copyright (C) 2004 Red Hat, Inc. All rights reserved. |
69792976 | 3 | # |
7f8f8bfa | 4 | # This file is part of LVM2. |
69792976 | 5 | # |
6606c3ae AK |
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. | |
69792976 | 9 | # |
6606c3ae AK |
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, | |
fcbef05a | 12 | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
69792976 AK |
13 | |
14 | srcdir = @srcdir@ | |
15 | top_srcdir = @top_srcdir@ | |
db8b5af9 | 16 | top_builddir = @top_builddir@ |
69792976 AK |
17 | |
18 | LANGS=de | |
19 | ||
64a99909 | 20 | #TARGETS=$(LANGS:%=lvm2_%.mo) $(LANGS:%=dm_%.mo) |
69792976 | 21 | |
8bfa4439 | 22 | DM_POSOURCES = $(top_builddir)/libdm/dm-tools/dmsetup.pot $(top_builddir)/libdm/*.pot \ |
c77197c6 | 23 | $(top_builddir)/libdm/*/*.pot |
69792976 | 24 | |
c77197c6 | 25 | LVM_POSOURCES = $(top_builddir)/tools/*.pot $(top_builddir)/lib/*/*.pot |
69792976 | 26 | |
814aebc4 | 27 | include $(top_builddir)/make.tmpl |
69792976 | 28 | |
0782ad50 | 29 | lvm2.po: Makefile $(LVM_POSOURCES) |
69792976 AK |
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 - \ | |
0782ad50 | 37 | $(LVM_POSOURCES) > $@ |
69792976 | 38 | |
0782ad50 AK |
39 | device-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 | ||
49 | pofile: lvm2.po device-mapper.po | |
50 | ||
51 | # FIXME | |
52 | install: $(TARGETS) | |
53 | @echo Installing translation files in $(localedir) | |
54 | @( \ | |
55 | for lang in $(LANGS); do \ | |
23b059e7 | 56 | $(INSTALL_DATA) -D $$lang.mo \ |
0782ad50 AK |
57 | $(localedir)/$$lang/LC_MESSAGES/lvm2.mo;\ |
58 | done; \ | |
59 | ) | |
60 | @( \ | |
61 | for lang in $(LANGS); do \ | |
23b059e7 | 62 | $(INSTALL_DATA) -D $$lang.mo \ |
0782ad50 AK |
63 | $(localedir)/$$lang/LC_MESSAGES/device-mapper.mo;\ |
64 | done; \ | |
65 | ) |