Remove dependency on xml-light, replace with libxml2
[virt-top.git] / Makefile.am
1 # virt-top
2 # Copyright (C) 2007-2021 Red Hat Inc., Richard W.M. Jones
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 SUBDIRS = src po
19
20 EXTRA_DIST = \
21         .gitignore \
22         HACKING
23
24 dist-hook: po/POTFILES po/POTFILES-ml
25
26 po/POTFILES: configure.ac
27         rm -f $@ $@-t
28         find . -name '*.c' | \
29         grep -v '/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/' | \
30         LC_ALL=C sort > $@-t
31         mv $@-t $@
32
33 po/POTFILES-ml: configure.ac
34         rm -f $@ $@-t
35         find . -name '*.ml' | \
36         grep -v '/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/' | \
37         LC_ALL=C sort > $@-t
38         mv $@-t $@
39
40 # Commit everything in current directory to HEAD, and set commit
41 # message to current version (only for maintainer).
42
43 maintainer-commit:
44         git commit -a -m "Version $(VERSION)."
45
46 # Tag HEAD with current version (only for maintainer).
47
48 maintainer-tag:
49         git tag -a "v$(VERSION)" -m "Version $(VERSION)" -f
50
51 # Maintainer only: check no files are missing from EXTRA_DIST rules,
52 # and that all generated files have been included in the tarball.
53 # (Note you must have done 'make dist')
54
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 | sort > gitfiles
59         comm -13 tarfiles gitfiles > comm-out
60         @echo Checking for differences between EXTRA_DIST and git ...
61         cat comm-out
62         [ ! -s comm-out ]
63         rm tarfiles gitfiles comm-out
64         @echo PASS: EXTRA_DIST tests