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
35 CLEANFILES += virt-what.1 virt-what-cvm.1 virt-what.txt virt-what-cvm.txt
36 man_MANS = virt-what.1 virt-what-cvm.1
39 pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \
46 #----------------------------------------------------------------------
49 # Check no files are missing from EXTRA_DIST rules, and that all
50 # generated files have been included in the tarball. (Note you must
51 # have done 'make dist')
52 maintainer-check-extra-dist:
53 @zcat $(PACKAGE_NAME)-$(VERSION).tar.gz | tar tf - | sort | \
54 sed 's,^$(PACKAGE_NAME)-$(VERSION)/,,' > tarfiles
57 @comm -13 tarfiles gitfiles > comm-out
58 @echo Checking for differences between EXTRA_DIST and git ...
61 @rm tarfiles gitfiles comm-out
62 @echo PASS: EXTRA_DIST tests
64 # Commit everything in the current directory and set the commit
65 # message to the current version number.
67 git commit -a -m "Version $(VERSION)."
69 # Tag HEAD with the current version.
71 git tag -a v$(VERSION) -m "Version $(VERSION)." -f