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