2dfed9caacbca9d2344ae1e80ae3fe489e0d17e3
[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 virt-what.1 virt-what.txt
19
20 AM_CPPFLAGS = -Wall
21
22 sbin_SCRIPTS = virt-what
23 libexec_PROGRAMS = virt-what-cpuid-helper
24
25 man_MANS = virt-what.1
26
27 virt-what.1: virt-what.pod
28         pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \
29           $< > $@
30
31 virt-what.txt: virt-what.pod
32         pod2text $< > $@
33
34 TESTS = \
35         tests/test-baremetal.sh \
36         tests/test-esx4.1.sh \
37         tests/test-hyperv.sh \
38         tests/test-kvm.sh \
39         tests/test-kvm-explicit-cpu.sh \
40         tests/test-linux-vserver.sh \
41         tests/test-lx86.sh \
42         tests/test-parallels-desktop.sh \
43         tests/test-qemu.sh \
44         tests/test-rhel5-xen-dom0.sh \
45         tests/test-rhel5-xen-domU-hvm.sh \
46         tests/test-rhel5-xen-domU-pv.sh \
47         tests/test-zvm.sh
48
49 EXTRA_DIST = \
50         virt-what.in \
51         virt-what.pod \
52         tests/baremetal/proc/cpuinfo \
53         tests/baremetal/proc/self/status \
54         tests/baremetal/sbin/dmidecode \
55         tests/baremetal/sbin/id \
56         tests/baremetal/sbin/virt-what-cpuid-helper \
57         tests/esx4.1/proc/cpuinfo \
58         tests/esx4.1/proc/self/status \
59         tests/esx4.1/sbin/dmidecode \
60         tests/esx4.1/sbin/id \
61         tests/esx4.1/sbin/virt-what-cpuid-helper \
62         tests/hyperv/proc/cpuinfo \
63         tests/hyperv/proc/self/status \
64         tests/hyperv/sbin/dmidecode \
65         tests/hyperv/sbin/id \
66         tests/hyperv/sbin/virt-what-cpuid-helper \
67         tests/kvm/proc/cpuinfo \
68         tests/kvm/proc/self/status \
69         tests/kvm/sbin/dmidecode \
70         tests/kvm/sbin/id \
71         tests/kvm/sbin/virt-what-cpuid-helper \
72         tests/kvm-explicit-cpu/proc/cpuinfo \
73         tests/kvm-explicit-cpu/proc/self/status \
74         tests/kvm-explicit-cpu/sbin/dmidecode \
75         tests/kvm-explicit-cpu/sbin/id \
76         tests/kvm-explicit-cpu/sbin/virt-what-cpuid-helper \
77         tests/linux-vserver/proc/cpuinfo \
78         tests/linux-vserver/proc/self/status \
79         tests/linux-vserver/sbin/dmidecode \
80         tests/linux-vserver/sbin/id \
81         tests/linux-vserver/sbin/virt-what-cpuid-helper \
82         tests/lx86/proc/cpuinfo \
83         tests/lx86/proc/self/status \
84         tests/lx86/sbin/dmidecode \
85         tests/lx86/sbin/id \
86         tests/lx86/sbin/virt-what-cpuid-helper \
87         tests/parallels-desktop/proc/cpuinfo \
88         tests/parallels-desktop/proc/self/status \
89         tests/parallels-desktop/sbin/dmidecode \
90         tests/parallels-desktop/sbin/id \
91         tests/parallels-desktop/sbin/virt-what-cpuid-helper \
92         tests/qemu/proc/cpuinfo \
93         tests/qemu/proc/self/status \
94         tests/qemu/sbin/dmidecode \
95         tests/qemu/sbin/id \
96         tests/qemu/sbin/virt-what-cpuid-helper \
97         tests/rhel5-xen-dom0/proc/cpuinfo \
98         tests/rhel5-xen-dom0/proc/self/status \
99         tests/rhel5-xen-dom0/proc/xen/balloon \
100         tests/rhel5-xen-dom0/proc/xen/capabilities \
101         tests/rhel5-xen-dom0/proc/xen/privcmd \
102         tests/rhel5-xen-dom0/proc/xen/xenbus \
103         tests/rhel5-xen-dom0/proc/xen/xsd_kva \
104         tests/rhel5-xen-dom0/proc/xen/xsd_port \
105         tests/rhel5-xen-dom0/sbin/dmidecode \
106         tests/rhel5-xen-dom0/sbin/id \
107         tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper \
108         tests/rhel5-xen-dom0/sys/hypervisor/properties/pagesize \
109         tests/rhel5-xen-dom0/sys/hypervisor/properties/changeset \
110         tests/rhel5-xen-dom0/sys/hypervisor/properties/virtual_start \
111         tests/rhel5-xen-dom0/sys/hypervisor/properties/capabilities \
112         tests/rhel5-xen-dom0/sys/hypervisor/properties/writable_pt \
113         tests/rhel5-xen-dom0/sys/hypervisor/type \
114         tests/rhel5-xen-dom0/sys/hypervisor/vmcoreinfo \
115         tests/rhel5-xen-dom0/sys/hypervisor/version/minor \
116         tests/rhel5-xen-dom0/sys/hypervisor/version/major \
117         tests/rhel5-xen-dom0/sys/hypervisor/version/extra \
118         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiler \
119         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiled_by \
120         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compile_date \
121         tests/rhel5-xen-dom0/sys/hypervisor/uuid \
122         tests/rhel5-xen-domU-hvm/proc/cpuinfo \
123         tests/rhel5-xen-domU-hvm/proc/self/status \
124         tests/rhel5-xen-domU-hvm/sbin/dmidecode \
125         tests/rhel5-xen-domU-hvm/sbin/id \
126         tests/rhel5-xen-domU-hvm/sbin/virt-what-cpuid-helper \
127         tests/rhel5-xen-domU-pv/proc/cpuinfo \
128         tests/rhel5-xen-domU-pv/proc/self/status \
129         tests/rhel5-xen-domU-pv/proc/xen/balloon \
130         tests/rhel5-xen-domU-pv/proc/xen/capabilities \
131         tests/rhel5-xen-domU-pv/proc/xen/privcmd \
132         tests/rhel5-xen-domU-pv/proc/xen/xenbus \
133         tests/rhel5-xen-domU-pv/sbin/dmidecode \
134         tests/rhel5-xen-domU-pv/sbin/id \
135         tests/rhel5-xen-domU-pv/sbin/virt-what-cpuid-helper \
136         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/pagesize \
137         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/changeset \
138         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/virtual_start \
139         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/capabilities \
140         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/writable_pt \
141         tests/rhel5-xen-domU-pv/sys/hypervisor/type \
142         tests/rhel5-xen-domU-pv/sys/hypervisor/vmcoreinfo \
143         tests/rhel5-xen-domU-pv/sys/hypervisor/version/minor \
144         tests/rhel5-xen-domU-pv/sys/hypervisor/version/major \
145         tests/rhel5-xen-domU-pv/sys/hypervisor/version/extra \
146         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiler \
147         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiled_by \
148         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compile_date \
149         tests/rhel5-xen-domU-pv/sys/hypervisor/uuid \
150         tests/zvm/proc/cpuinfo \
151         tests/zvm/proc/self/status \
152         tests/zvm/proc/sysinfo \
153         tests/zvm/sbin/dmidecode \
154         tests/zvm/sbin/id \
155         tests/zvm/sbin/virt-what-cpuid-helper \
156         $(TESTS)