Update the previous commit to use <system>-<virt> standard for facts.
[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-docker.sh \
44         tests/test-esx4.1.sh \
45         tests/test-hyperv.sh \
46         tests/test-kvm.sh \
47         tests/test-kvm-explicit-cpu.sh \
48         tests/test-linux-vserver.sh \
49         tests/test-lkvm.sh \
50         tests/test-lkvm-arm.sh \
51         tests/test-lxc.sh \
52         tests/test-lx86.sh \
53         tests/test-parallels-desktop.sh \
54         tests/test-ppc64-baremetal.sh \
55         tests/test-ppc64-kvm.sh \
56         tests/test-ppc64-lpar-dedicated.sh \
57         tests/test-ppc64-lpar-shared.sh \
58         tests/test-qemu.sh \
59         tests/test-qemu-arm.sh \
60         tests/test-qemu-smbios.sh \
61         tests/test-qemu-smbios-kvm.sh \
62         tests/test-rhel5-xen-dom0.sh \
63         tests/test-rhel5-xen-domU-hvm.sh \
64         tests/test-rhel5-xen-domU-hvm-ia64.sh \
65         tests/test-rhel5-xen-domU-pv.sh \
66         tests/test-xen-arm.sh \
67         tests/test-zvm.sh
68
69 EXTRA_DIST = \
70         virt-what.in \
71         virt-what.pod \
72         tests/baremetal/proc/cpuinfo \
73         tests/baremetal/proc/self/status \
74         tests/baremetal/sbin/dmidecode \
75         tests/baremetal/sbin/uname \
76         tests/baremetal/sbin/virt-what-cpuid-helper \
77         tests/docker/.dockerinit \
78         tests/docker/proc/cpuinfo \
79         tests/docker/proc/self/status \
80         tests/docker/sbin/dmidecode \
81         tests/docker/sbin/uname \
82         tests/docker/sbin/virt-what-cpuid-helper \
83         tests/esx4.1/proc/cpuinfo \
84         tests/esx4.1/proc/self/status \
85         tests/esx4.1/sbin/dmidecode \
86         tests/esx4.1/sbin/uname \
87         tests/esx4.1/sbin/virt-what-cpuid-helper \
88         tests/hyperv/proc/cpuinfo \
89         tests/hyperv/proc/self/status \
90         tests/hyperv/sbin/dmidecode \
91         tests/hyperv/sbin/uname \
92         tests/hyperv/sbin/virt-what-cpuid-helper \
93         tests/kvm/proc/cpuinfo \
94         tests/kvm/proc/self/status \
95         tests/kvm/sbin/dmidecode \
96         tests/kvm/sbin/uname \
97         tests/kvm/sbin/virt-what-cpuid-helper \
98         tests/kvm-explicit-cpu/proc/cpuinfo \
99         tests/kvm-explicit-cpu/proc/self/status \
100         tests/kvm-explicit-cpu/sbin/dmidecode \
101         tests/kvm-explicit-cpu/sbin/uname \
102         tests/kvm-explicit-cpu/sbin/virt-what-cpuid-helper \
103         tests/linux-vserver/proc/cpuinfo \
104         tests/linux-vserver/proc/self/status \
105         tests/linux-vserver/sbin/dmidecode \
106         tests/linux-vserver/sbin/uname \
107         tests/linux-vserver/sbin/virt-what-cpuid-helper \
108         tests/lkvm/proc/cpuinfo \
109         tests/lkvm/proc/self/status \
110         tests/lkvm/sbin/dmidecode \
111         tests/lkvm/sbin/uname \
112         tests/lkvm/sbin/virt-what-cpuid-helper \
113         tests/lkvm-arm/proc/cpuinfo \
114         tests/lkvm-arm/proc/device-tree/compatible \
115         tests/lkvm-arm/proc/self/status \
116         tests/lkvm-arm/sbin/dmidecode \
117         tests/lkvm-arm/sbin/uname \
118         tests/lkvm-arm/sbin/virt-what-cpuid-helper \
119         tests/lxc/proc/1/environ \
120         tests/lxc/proc/cpuinfo \
121         tests/lxc/proc/self/status \
122         tests/lxc/sbin/dmidecode \
123         tests/lxc/sbin/uname \
124         tests/lxc/sbin/virt-what-cpuid-helper \
125         tests/lx86/proc/cpuinfo \
126         tests/lx86/proc/self/status \
127         tests/lx86/sbin/dmidecode \
128         tests/lx86/sbin/uname \
129         tests/lx86/sbin/virt-what-cpuid-helper \
130         tests/parallels-desktop/proc/cpuinfo \
131         tests/parallels-desktop/proc/self/status \
132         tests/parallels-desktop/sbin/dmidecode \
133         tests/parallels-desktop/sbin/uname \
134         tests/parallels-desktop/sbin/virt-what-cpuid-helper \
135         tests/ppc64-baremetal/proc/cpuinfo \
136         tests/ppc64-baremetal/proc/self/status \
137         tests/ppc64-baremetal/sbin/dmidecode \
138         tests/ppc64-baremetal/sbin/uname \
139         tests/ppc64-baremetal/sbin/virt-what-cpuid-helper \
140         tests/ppc64-kvm/proc/cpuinfo \
141         tests/ppc64-kvm/proc/self/status \
142         tests/ppc64-kvm/sbin/dmidecode \
143         tests/ppc64-kvm/sbin/uname \
144         tests/ppc64-kvm/sbin/virt-what-cpuid-helper \
145         tests/ppc64-lpar-dedicated/proc/cpuinfo \
146         tests/ppc64-lpar-dedicated/proc/ppc64/lparcfg \
147         tests/ppc64-lpar-shared/sbin/dmidecode \
148         tests/ppc64-lpar-shared/sbin/uname \
149         tests/ppc64-lpar-shared/sbin/virt-what-cpuid-helper \
150         tests/ppc64-lpar-shared/proc/cpuinfo \
151         tests/ppc64-lpar-shared/proc/self/status \
152         tests/ppc64-lpar-shared/proc/ppc64/lparcfg \
153         tests/ppc64-lpar-shared/sbin/dmidecode \
154         tests/ppc64-lpar-shared/sbin/uname \
155         tests/ppc64-lpar-shared/sbin/virt-what-cpuid-helper \
156         tests/qemu/proc/cpuinfo \
157         tests/qemu/proc/self/status \
158         tests/qemu/sbin/dmidecode \
159         tests/qemu/sbin/uname \
160         tests/qemu/sbin/virt-what-cpuid-helper \
161         tests/qemu-arm/proc/cpuinfo \
162         tests/qemu-arm/proc/device-tree/fw-cfg@9020000/compatible \
163         tests/qemu-arm/proc/self/status \
164         tests/qemu-arm/sbin/dmidecode \
165         tests/qemu-arm/sbin/uname \
166         tests/qemu-arm/sbin/virt-what-cpuid-helper \
167         tests/qemu-smbios/proc/cpuinfo \
168         tests/qemu-smbios/proc/self/status \
169         tests/qemu-smbios/sbin/dmidecode \
170         tests/qemu-smbios/sbin/uname \
171         tests/qemu-smbios/sbin/virt-what-cpuid-helper \
172         tests/qemu-smbios-kvm/proc/cpuinfo \
173         tests/qemu-smbios-kvm/proc/self/status \
174         tests/qemu-smbios-kvm/sbin/dmidecode \
175         tests/qemu-smbios-kvm/sbin/uname \
176         tests/qemu-smbios-kvm/sbin/virt-what-cpuid-helper \
177         tests/rhel5-xen-dom0/proc/cpuinfo \
178         tests/rhel5-xen-dom0/proc/self/status \
179         tests/rhel5-xen-dom0/proc/xen/balloon \
180         tests/rhel5-xen-dom0/proc/xen/capabilities \
181         tests/rhel5-xen-dom0/proc/xen/privcmd \
182         tests/rhel5-xen-dom0/proc/xen/xenbus \
183         tests/rhel5-xen-dom0/proc/xen/xsd_kva \
184         tests/rhel5-xen-dom0/proc/xen/xsd_port \
185         tests/rhel5-xen-dom0/sbin/dmidecode \
186         tests/rhel5-xen-dom0/sbin/uname \
187         tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper \
188         tests/rhel5-xen-dom0/sys/hypervisor/properties/pagesize \
189         tests/rhel5-xen-dom0/sys/hypervisor/properties/changeset \
190         tests/rhel5-xen-dom0/sys/hypervisor/properties/virtual_start \
191         tests/rhel5-xen-dom0/sys/hypervisor/properties/capabilities \
192         tests/rhel5-xen-dom0/sys/hypervisor/properties/writable_pt \
193         tests/rhel5-xen-dom0/sys/hypervisor/type \
194         tests/rhel5-xen-dom0/sys/hypervisor/vmcoreinfo \
195         tests/rhel5-xen-dom0/sys/hypervisor/version/minor \
196         tests/rhel5-xen-dom0/sys/hypervisor/version/major \
197         tests/rhel5-xen-dom0/sys/hypervisor/version/extra \
198         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiler \
199         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiled_by \
200         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compile_date \
201         tests/rhel5-xen-dom0/sys/hypervisor/uuid \
202         tests/rhel5-xen-domU-hvm/proc/cpuinfo \
203         tests/rhel5-xen-domU-hvm/proc/self/status \
204         tests/rhel5-xen-domU-hvm/sbin/dmidecode \
205         tests/rhel5-xen-domU-hvm/sbin/uname \
206         tests/rhel5-xen-domU-hvm/sbin/virt-what-cpuid-helper \
207         tests/rhel5-xen-domU-hvm-ia64/proc/cpuinfo \
208         tests/rhel5-xen-domU-hvm-ia64/proc/self/status \
209         tests/rhel5-xen-domU-hvm-ia64/sbin/dmidecode \
210         tests/rhel5-xen-domU-hvm-ia64/sbin/uname \
211         tests/rhel5-xen-domU-hvm-ia64/sbin/virt-what-cpuid-helper \
212         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/bind \
213         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/unbind \
214         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/bind \
215         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/unbind \
216         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers_probe \
217         tests/rhel5-xen-domU-pv/proc/cpuinfo \
218         tests/rhel5-xen-domU-pv/proc/self/status \
219         tests/rhel5-xen-domU-pv/proc/xen/balloon \
220         tests/rhel5-xen-domU-pv/proc/xen/capabilities \
221         tests/rhel5-xen-domU-pv/proc/xen/privcmd \
222         tests/rhel5-xen-domU-pv/proc/xen/xenbus \
223         tests/rhel5-xen-domU-pv/sbin/dmidecode \
224         tests/rhel5-xen-domU-pv/sbin/uname \
225         tests/rhel5-xen-domU-pv/sbin/virt-what-cpuid-helper \
226         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/pagesize \
227         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/changeset \
228         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/virtual_start \
229         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/capabilities \
230         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/writable_pt \
231         tests/rhel5-xen-domU-pv/sys/hypervisor/type \
232         tests/rhel5-xen-domU-pv/sys/hypervisor/vmcoreinfo \
233         tests/rhel5-xen-domU-pv/sys/hypervisor/version/minor \
234         tests/rhel5-xen-domU-pv/sys/hypervisor/version/major \
235         tests/rhel5-xen-domU-pv/sys/hypervisor/version/extra \
236         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiler \
237         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiled_by \
238         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compile_date \
239         tests/rhel5-xen-domU-pv/sys/hypervisor/uuid \
240         tests/xen-arm/proc/cpuinfo \
241         tests/xen-arm/proc/device-tree/hypervisor/compatible \
242         tests/xen-arm/proc/self/status \
243         tests/xen-arm/sbin/dmidecode \
244         tests/xen-arm/sbin/uname \
245         tests/xen-arm/sbin/virt-what-cpuid-helper \
246         tests/zvm/proc/cpuinfo \
247         tests/zvm/proc/self/status \
248         tests/zvm/proc/sysinfo \
249         tests/zvm/sbin/dmidecode \
250         tests/zvm/sbin/uname \
251         tests/zvm/sbin/virt-what-cpuid-helper \
252         $(TESTS)