man: detect with autotools if pod2man is present
[virt-what.git] / Makefile.am
1 # Makefile for virt-what
2 # Copyright (C) 2008-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 CLEANFILES = virt-what
19
20 AM_CPPFLAGS = -Wall
21
22 sbin_SCRIPTS = virt-what
23 libexec_PROGRAMS = virt-what-cpuid-helper
24 if HOST_CPU_IA64
25 libexec_PROGRAMS += virt-what-ia64-xen-rdtsc-test
26 endif
27
28 if HAVE_POD2MAN
29
30 CLEANFILES += virt-what.1 virt-what.txt
31 man_MANS = virt-what.1
32
33 virt-what.1: virt-what.pod
34         pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \
35           $< > $@
36 virt-what.txt: virt-what.pod
37         pod2text $< > $@
38
39 endif
40
41 TESTS = \
42         tests/test-baremetal.sh \
43         tests/test-esx4.1.sh \
44         tests/test-hyperv.sh \
45         tests/test-kvm.sh \
46         tests/test-kvm-explicit-cpu.sh \
47         tests/test-linux-vserver.sh \
48         tests/test-lx86.sh \
49         tests/test-parallels-desktop.sh \
50         tests/test-qemu.sh \
51         tests/test-rhel5-xen-dom0.sh \
52         tests/test-rhel5-xen-domU-hvm.sh \
53         tests/test-rhel5-xen-domU-hvm-ia64.sh \
54         tests/test-rhel5-xen-domU-pv.sh \
55         tests/test-zvm.sh
56
57 EXTRA_DIST = \
58         virt-what.in \
59         virt-what.pod \
60         tests/baremetal/proc/cpuinfo \
61         tests/baremetal/proc/self/status \
62         tests/baremetal/sbin/dmidecode \
63         tests/baremetal/sbin/id \
64         tests/baremetal/sbin/uname \
65         tests/baremetal/sbin/virt-what-cpuid-helper \
66         tests/esx4.1/proc/cpuinfo \
67         tests/esx4.1/proc/self/status \
68         tests/esx4.1/sbin/dmidecode \
69         tests/esx4.1/sbin/id \
70         tests/esx4.1/sbin/uname \
71         tests/esx4.1/sbin/virt-what-cpuid-helper \
72         tests/hyperv/proc/cpuinfo \
73         tests/hyperv/proc/self/status \
74         tests/hyperv/sbin/dmidecode \
75         tests/hyperv/sbin/id \
76         tests/hyperv/sbin/uname \
77         tests/hyperv/sbin/virt-what-cpuid-helper \
78         tests/kvm/proc/cpuinfo \
79         tests/kvm/proc/self/status \
80         tests/kvm/sbin/dmidecode \
81         tests/kvm/sbin/id \
82         tests/kvm/sbin/uname \
83         tests/kvm/sbin/virt-what-cpuid-helper \
84         tests/kvm-explicit-cpu/proc/cpuinfo \
85         tests/kvm-explicit-cpu/proc/self/status \
86         tests/kvm-explicit-cpu/sbin/dmidecode \
87         tests/kvm-explicit-cpu/sbin/id \
88         tests/kvm-explicit-cpu/sbin/uname \
89         tests/kvm-explicit-cpu/sbin/virt-what-cpuid-helper \
90         tests/linux-vserver/proc/cpuinfo \
91         tests/linux-vserver/proc/self/status \
92         tests/linux-vserver/sbin/dmidecode \
93         tests/linux-vserver/sbin/id \
94         tests/linux-vserver/sbin/uname \
95         tests/linux-vserver/sbin/virt-what-cpuid-helper \
96         tests/lx86/proc/cpuinfo \
97         tests/lx86/proc/self/status \
98         tests/lx86/sbin/dmidecode \
99         tests/lx86/sbin/id \
100         tests/lx86/sbin/uname \
101         tests/lx86/sbin/virt-what-cpuid-helper \
102         tests/parallels-desktop/proc/cpuinfo \
103         tests/parallels-desktop/proc/self/status \
104         tests/parallels-desktop/sbin/dmidecode \
105         tests/parallels-desktop/sbin/id \
106         tests/parallels-desktop/sbin/uname \
107         tests/parallels-desktop/sbin/virt-what-cpuid-helper \
108         tests/qemu/proc/cpuinfo \
109         tests/qemu/proc/self/status \
110         tests/qemu/sbin/dmidecode \
111         tests/qemu/sbin/id \
112         tests/qemu/sbin/uname \
113         tests/qemu/sbin/virt-what-cpuid-helper \
114         tests/rhel5-xen-dom0/proc/cpuinfo \
115         tests/rhel5-xen-dom0/proc/self/status \
116         tests/rhel5-xen-dom0/proc/xen/balloon \
117         tests/rhel5-xen-dom0/proc/xen/capabilities \
118         tests/rhel5-xen-dom0/proc/xen/privcmd \
119         tests/rhel5-xen-dom0/proc/xen/xenbus \
120         tests/rhel5-xen-dom0/proc/xen/xsd_kva \
121         tests/rhel5-xen-dom0/proc/xen/xsd_port \
122         tests/rhel5-xen-dom0/sbin/dmidecode \
123         tests/rhel5-xen-dom0/sbin/id \
124         tests/rhel5-xen-dom0/sbin/uname \
125         tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper \
126         tests/rhel5-xen-dom0/sys/hypervisor/properties/pagesize \
127         tests/rhel5-xen-dom0/sys/hypervisor/properties/changeset \
128         tests/rhel5-xen-dom0/sys/hypervisor/properties/virtual_start \
129         tests/rhel5-xen-dom0/sys/hypervisor/properties/capabilities \
130         tests/rhel5-xen-dom0/sys/hypervisor/properties/writable_pt \
131         tests/rhel5-xen-dom0/sys/hypervisor/type \
132         tests/rhel5-xen-dom0/sys/hypervisor/vmcoreinfo \
133         tests/rhel5-xen-dom0/sys/hypervisor/version/minor \
134         tests/rhel5-xen-dom0/sys/hypervisor/version/major \
135         tests/rhel5-xen-dom0/sys/hypervisor/version/extra \
136         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiler \
137         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiled_by \
138         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compile_date \
139         tests/rhel5-xen-dom0/sys/hypervisor/uuid \
140         tests/rhel5-xen-domU-hvm/proc/cpuinfo \
141         tests/rhel5-xen-domU-hvm/proc/self/status \
142         tests/rhel5-xen-domU-hvm/sbin/dmidecode \
143         tests/rhel5-xen-domU-hvm/sbin/id \
144         tests/rhel5-xen-domU-hvm/sbin/uname \
145         tests/rhel5-xen-domU-hvm/sbin/virt-what-cpuid-helper \
146         tests/rhel5-xen-domU-hvm-ia64/proc/cpuinfo \
147         tests/rhel5-xen-domU-hvm-ia64/proc/self/status \
148         tests/rhel5-xen-domU-hvm-ia64/sbin/dmidecode \
149         tests/rhel5-xen-domU-hvm-ia64/sbin/id \
150         tests/rhel5-xen-domU-hvm-ia64/sbin/uname \
151         tests/rhel5-xen-domU-hvm-ia64/sbin/virt-what-cpuid-helper \
152         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/bind \
153         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/unbind \
154         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/bind \
155         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/unbind \
156         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers_probe \
157         tests/rhel5-xen-domU-pv/proc/cpuinfo \
158         tests/rhel5-xen-domU-pv/proc/self/status \
159         tests/rhel5-xen-domU-pv/proc/xen/balloon \
160         tests/rhel5-xen-domU-pv/proc/xen/capabilities \
161         tests/rhel5-xen-domU-pv/proc/xen/privcmd \
162         tests/rhel5-xen-domU-pv/proc/xen/xenbus \
163         tests/rhel5-xen-domU-pv/sbin/dmidecode \
164         tests/rhel5-xen-domU-pv/sbin/id \
165         tests/rhel5-xen-domU-pv/sbin/uname \
166         tests/rhel5-xen-domU-pv/sbin/virt-what-cpuid-helper \
167         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/pagesize \
168         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/changeset \
169         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/virtual_start \
170         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/capabilities \
171         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/writable_pt \
172         tests/rhel5-xen-domU-pv/sys/hypervisor/type \
173         tests/rhel5-xen-domU-pv/sys/hypervisor/vmcoreinfo \
174         tests/rhel5-xen-domU-pv/sys/hypervisor/version/minor \
175         tests/rhel5-xen-domU-pv/sys/hypervisor/version/major \
176         tests/rhel5-xen-domU-pv/sys/hypervisor/version/extra \
177         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiler \
178         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiled_by \
179         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compile_date \
180         tests/rhel5-xen-domU-pv/sys/hypervisor/uuid \
181         tests/zvm/proc/cpuinfo \
182         tests/zvm/proc/self/status \
183         tests/zvm/proc/sysinfo \
184         tests/zvm/sbin/dmidecode \
185         tests/zvm/sbin/id \
186         tests/zvm/sbin/uname \
187         tests/zvm/sbin/virt-what-cpuid-helper \
188         $(TESTS)