Introduce 'virt-what-cvm' program
[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 = .gitignore virt-what.in virt-what.pod
23
24 SUBDIRS = . tests
25
26 sbin_SCRIPTS = virt-what
27 sbin_PROGRAMS = virt-what-cvm
28 libexec_PROGRAMS = virt-what-cpuid-helper
29 if HOST_CPU_IA64
30 libexec_PROGRAMS += virt-what-ia64-xen-rdtsc-test
31 endif
32
33 virt_what_cvm_LDADD = $(TPM2_TSS_LIBS)
34 virt_what_cvm_CFLAGS = $(TPM2_TSS_CFLAGS)
35
36 if HAVE_POD2MAN
37
38 CLEANFILES += virt-what.1 virt-what-cvm.1 virt-what.txt virt-what-cvm.txt
39 man_MANS = virt-what.1 virt-what-cvm.1
40
41 %.1: %.pod
42         pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \
43           $? > $@
44 %.txt: %.pod
45         pod2text $? > $@
46
47 endif
48
49 #----------------------------------------------------------------------
50 # Maintainers only!
51
52 # Check no files are missing from EXTRA_DIST rules, and that all
53 # generated files have been included in the tarball.  (Note you must
54 # have done 'make dist')
55 maintainer-check-extra-dist:
56         @zcat $(PACKAGE_NAME)-$(VERSION).tar.gz | tar tf - | sort | \
57           sed 's,^$(PACKAGE_NAME)-$(VERSION)/,,' > tarfiles
58         @git ls-files | \
59           sort > gitfiles
60         @comm -13 tarfiles gitfiles > comm-out
61         @echo Checking for differences between EXTRA_DIST and git ...
62         @cat comm-out
63         @[ ! -s comm-out ]
64         @rm tarfiles gitfiles comm-out
65         @echo PASS: EXTRA_DIST tests
66
67 # Commit everything in the current directory and set the commit
68 # message to the current version number.
69 maintainer-commit:
70         git commit -a -m "Version $(VERSION)."
71
72 # Tag HEAD with the current version.
73 maintainer-tag:
74         git tag -a v$(VERSION) -m "Version $(VERSION)." -f