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.
25 dist-hook: po/POTFILES po/POTFILES-ml
27 po/POTFILES: configure.ac
29 find . -name '*.c' | \
30 grep -v '/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/' | \
34 po/POTFILES-ml: configure.ac
36 find . -name '*.ml' | \
37 grep -v '/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/' | \
41 # Commit everything in current directory to HEAD, and set commit
42 # message to current version (only for maintainer).
45 git commit -a -m "Version $(VERSION)."
47 # Tag HEAD with current version (only for maintainer).
50 git tag -a "v$(VERSION)" -m "Version $(VERSION)" -f
52 # Maintainer only: check no files are missing from EXTRA_DIST rules,
53 # and that all generated files have been included in the tarball.
54 # (Note you must have done 'make dist')
56 maintainer-check-extra-dist:
57 zcat $(PACKAGE_NAME)-$(VERSION).tar.gz | tar tf - | sort | \
58 sed 's,^$(PACKAGE_NAME)-$(VERSION)/,,' > tarfiles
59 git ls-files | sort > gitfiles
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 ChangeLog: $(shell find -type f)
68 ./gitlog-to-changelog > $@.new