2 # Copyright (C) 2007-2021 Red Hat Inc., Richard W.M. Jones
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.
24 dist-hook: po/POTFILES po/POTFILES-ml
26 po/POTFILES: configure.ac
28 find . -name '*.c' | \
29 grep -v '/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/' | \
33 po/POTFILES-ml: configure.ac
35 find . -name '*.ml' | \
36 grep -v '/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/' | \
40 # Commit everything in current directory to HEAD, and set commit
41 # message to current version (only for maintainer).
44 git commit -a -m "Version $(VERSION)."
46 # Tag HEAD with current version (only for maintainer).
49 git tag -a "v$(VERSION)" -m "Version $(VERSION)" -f
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')
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 ...
63 rm tarfiles gitfiles comm-out
64 @echo PASS: EXTRA_DIST tests