docker: Check for /.dockerenv too
[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 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
44
45 #----------------------------------------------------------------------
46 # Maintainers only!
47
48 # Check no files are missing from EXTRA_DIST rules, and that all
49 # generated files have been included in the tarball.  (Note you must
50 # have done 'make dist')
51 maintainer-check-extra-dist:
52         @zcat $(PACKAGE_NAME)-$(VERSION).tar.gz | tar tf - | sort | \
53           sed 's,^$(PACKAGE_NAME)-$(VERSION)/,,' > tarfiles
54         @git ls-files | \
55           sort > gitfiles
56         @comm -13 tarfiles gitfiles > comm-out
57         @echo Checking for differences between EXTRA_DIST and git ...
58         @cat comm-out
59         @[ ! -s comm-out ]
60         @rm tarfiles gitfiles comm-out
61         @echo PASS: EXTRA_DIST tests
62
63 # Commit everything in the current directory and set the commit
64 # message to the current version number.
65 maintainer-commit:
66         git commit -a -m "Version $(VERSION)."
67
68 # Tag HEAD with the current version.
69 maintainer-tag:
70         git tag -a v$(VERSION) -m "Version $(VERSION)." -f