1 # libguestfs C examples
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.
22 CLEANFILES = stamp-guestfs-examples.pod
24 noinst_PROGRAMS = create_disk inspect_vm
26 noinst_PROGRAMS += virt-dhcp-address
29 create_disk_SOURCES = create_disk.c
30 create_disk_CFLAGS = \
31 -I$(top_srcdir)/src -I$(top_builddir)/src \
32 $(WARN_CFLAGS) $(WERROR_CFLAGS)
34 $(top_builddir)/src/libguestfs.la
36 inspect_vm_SOURCES = inspect_vm.c
38 -I$(top_srcdir)/src -I$(top_builddir)/src \
39 $(WARN_CFLAGS) $(WERROR_CFLAGS)
41 $(top_builddir)/src/libguestfs.la
43 virt_dhcp_address_SOURCES = virt-dhcp-address.c
44 virt_dhcp_address_CFLAGS = \
45 -I$(top_srcdir)/src -I$(top_builddir)/src \
46 $(WARN_CFLAGS) $(WERROR_CFLAGS) \
48 virt_dhcp_address_LDADD = \
50 $(top_builddir)/src/libguestfs.la
52 man_MANS = guestfs-examples.3
53 noinst_DATA = $(top_builddir)/html/guestfs-examples.3.html
55 guestfs-examples.3 $(top_builddir)/html/guestfs-examples.3.html: stamp-guestfs-examples.pod
57 stamp-guestfs-examples.pod: guestfs-examples.pod create_disk.c inspect_vm.c
58 $(top_srcdir)/podwrapper.sh \
60 --man guestfs-examples.3 \
61 --html $(top_builddir)/html/guestfs-examples.3.html \
62 --verbatim create_disk.c:@EXAMPLE1@ \
63 --verbatim inspect_vm.c:@EXAMPLE2@ \