b62738f0e02b567a92b1fccfe7587c84f2acfb25
[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 AM_CPPFLAGS = -Wall
19
20 CLEANFILES = virt-what *~
21
22 EXTRA_DIST = virt-what.in virt-what.pod
23
24 SUBDIRS = . tests
25
26 sbin_SCRIPTS = virt-what
27 libexec_PROGRAMS = virt-what-cpuid-helper
28 if HOST_CPU_IA64
29 libexec_PROGRAMS += virt-what-ia64-xen-rdtsc-test
30 endif
31
32 if HAVE_POD2MAN
33
34 CLEANFILES += virt-what.1 virt-what.txt
35 man_MANS = virt-what.1
36
37 virt-what.1: virt-what.pod
38         pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \
39           $? > $@
40 virt-what.txt: virt-what.pod
41         pod2text $? > $@
42
43 endif