1 # Makefile for virt-what
2 # Copyright (C) 2008-2011 Red Hat Inc.
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.
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.
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.
20 CLEANFILES = virt-what *~
22 EXTRA_DIST = .gitignore virt-what.in virt-what.pod
26 sbin_SCRIPTS = virt-what
27 sbin_PROGRAMS = virt-what-cvm
28 libexec_PROGRAMS = virt-what-cpuid-helper
30 libexec_PROGRAMS += virt-what-ia64-xen-rdtsc-test
33 virt_what_cvm_LDADD = $(TPM2_TSS_LIBS)
34 virt_what_cvm_CFLAGS = $(TPM2_TSS_CFLAGS)
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
42 pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \
49 #----------------------------------------------------------------------
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
60 @comm -13 tarfiles gitfiles > comm-out
61 @echo Checking for differences between EXTRA_DIST and git ...
64 @rm tarfiles gitfiles comm-out
65 @echo PASS: EXTRA_DIST tests
67 # Commit everything in the current directory and set the commit
68 # message to the current version number.
70 git commit -a -m "Version $(VERSION)."
72 # Tag HEAD with the current version.
74 git tag -a v$(VERSION) -m "Version $(VERSION)." -f