New tool: virt-sysprep: system preparation for guests.
[libguestfs.git] / po-docs / ja / Makefile.am
1 # libguestfs translations of man pages and POD files
2 # Copyright (C) 2010-2011 Red Hat Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 # Note that each Makefile.am in po-docs/$lang/Makefile.am should be
19 # identical.  If you create a new $lang.po, create the $lang/
20 # subdirectory and copy the Makefile.am from an existing language.
21
22 LINGUA = $(shell basename -- `pwd`)
23
24 CLEANFILES = *.1 *.3
25
26 MANPAGES = \
27         guestfs.3 \
28         guestfish.1 \
29         virt-alignment-scan.1 \
30         virt-copy-in.1 \
31         virt-copy-out.1 \
32         virt-tar-in.1 \
33         virt-tar-out.1 \
34         libguestfs-test-tool.1 \
35         guestmount.1 \
36         $(patsubst %.pl,%.1,$(wildcard virt-*.pl)) \
37         virt-cat.1 \
38         virt-df.1 \
39         virt-edit.1 \
40         virt-filesystems.1 \
41         virt-inspector.1 \
42         virt-ls.1 \
43         virt-rescue.1 \
44         virt-resize.1 \
45         virt-sparsify.1 \
46         virt-sysprep.1
47
48 # Ship the POD files and the translated manpages in the tarball.  This
49 # just simplifies building from the tarball, at a small cost in extra
50 # size.
51 EXTRA_DIST = \
52         $(MANPAGES) \
53         $(shell for f in `cat ../podfiles`; do basename $$f; done)
54
55 all-local: $(MANPAGES)
56
57 guestfs.3: guestfs.pod guestfs-actions.pod guestfs-availability.pod guestfs-structs.pod
58         $(top_builddir)/podwrapper.sh \
59           --section 3 \
60           --man $@ \
61           --insert $(srcdir)/guestfs-actions.pod:@ACTIONS@ \
62           --insert $(srcdir)/guestfs-availability.pod:@AVAILABILITY@ \
63           --insert $(srcdir)/guestfs-structs.pod:@STRUCTS@ \
64           $<
65
66 guestfish.1: guestfish.pod guestfish-actions.pod guestfish-commands.pod
67         $(top_builddir)/podwrapper.sh \
68           --man $@ \
69           --insert $(srcdir)/guestfish-actions.pod:@ACTIONS@ \
70           --insert $(srcdir)/guestfish-commands.pod:@FISH_COMMANDS@ \
71           $<
72
73 %.1: %.pod
74         $(top_builddir)/podwrapper.sh --man $@ $<
75
76 %.1: %.pl
77         $(top_builddir)/podwrapper.sh --man $@ $<
78
79 # XXX Can automake do this properly?
80 install-data-hook:
81         $(MKDIR_P) $(DESTDIR)$(mandir)/$(LINGUA)/man1
82         $(INSTALL) -m 0644 guestfish.1 $(DESTDIR)$(mandir)/$(LINGUA)/man1
83         $(INSTALL) -m 0644 guestmount.1 $(DESTDIR)$(mandir)/$(LINGUA)/man1
84         $(INSTALL) -m 0644 virt-*.1 $(DESTDIR)$(mandir)/$(LINGUA)/man1
85         $(MKDIR_P) $(DESTDIR)$(mandir)/$(LINGUA)/man3
86         $(INSTALL) -m 0644 guestfs.3 $(DESTDIR)$(mandir)/$(LINGUA)/man3