1 # libguestfs translations of man pages and POD files
2 # Copyright (C) 2010-2011 Red Hat Inc.
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.
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.
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.
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.
22 LINGUA = $(shell basename -- `pwd`)
29 libguestfs-test-tool.1 \
31 $(patsubst %.pl,%.1,$(wildcard virt-*.pl))
33 # Ship the POD files and the translated manpages in the tarball. This
34 # just simplifies building from the tarball, at a small cost in extra
38 guestfs.pod guestfs-actions.pod guestfs-availability.pod guestfs-structs.pod \
39 guestfish.pod guestfish-actions.pod guestfish-commands.pod \
41 libguestfs-test-tool.pod \
44 all-local: $(MANPAGES)
46 guestfs.3: guestfs.pod guestfs-actions.pod guestfs-availability.pod guestfs-structs.pod
47 $(top_srcdir)/podwrapper.sh \
50 --insert guestfs-actions.pod:@ACTIONS@ \
51 --insert guestfs-availability.pod:@AVAILABILITY@ \
52 --insert guestfs-structs.pod:@STRUCTS@ \
55 guestfish.1: guestfish.pod guestfish-actions.pod guestfish-commands.pod
56 $(top_srcdir)/podwrapper.sh \
58 --insert guestfish-actions.pod:@ACTIONS@ \
59 --insert guestfish-commands.pod:@FISH_COMMANDS@ \
62 guestmount.1: guestmount.pod
63 $(top_srcdir)/podwrapper.sh \
67 libguestfs-test-tool.1: libguestfs-test-tool.pod
68 $(top_srcdir)/podwrapper.sh \
73 $(top_srcdir)/podwrapper.sh \
77 # XXX Can automake do this properly?
79 $(MKDIR_P) $(DESTDIR)$(mandir)/$(LINGUA)/man1
80 $(INSTALL) -m 0644 guestfish.1 $(DESTDIR)$(mandir)/$(LINGUA)/man1
81 $(INSTALL) -m 0644 guestmount.1 $(DESTDIR)$(mandir)/$(LINGUA)/man1
82 $(INSTALL) -m 0644 virt-*.1 $(DESTDIR)$(mandir)/$(LINGUA)/man1
83 $(MKDIR_P) $(DESTDIR)$(mandir)/$(LINGUA)/man3
84 $(INSTALL) -m 0644 guestfs.3 $(DESTDIR)$(mandir)/$(LINGUA)/man3