1 | # Process this file with automake to create Makefile.in
|
---|
2 | #
|
---|
3 | # Copyright 1997-1998, 2005-2021 Free Software Foundation, Inc.
|
---|
4 | #
|
---|
5 | # This program is free software; you can redistribute it and/or modify
|
---|
6 | # it under the terms of the GNU General Public License as published by
|
---|
7 | # the Free Software Foundation; either version 3, or (at your option)
|
---|
8 | # any later version.
|
---|
9 | #
|
---|
10 | # This program is distributed in the hope that it will be useful,
|
---|
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
13 | # GNU General Public License for more details.
|
---|
14 | #
|
---|
15 | # You should have received a copy of the GNU General Public License
|
---|
16 | # along with this program. If not, see <https://www.gnu.org/licenses/>.
|
---|
17 | #
|
---|
18 | AUTOMAKE_OPTIONS = gnu 1.12
|
---|
19 |
|
---|
20 | SUBDIRS = po lib doc src tests gnulib-tests
|
---|
21 |
|
---|
22 | EXTRA_DIST = \
|
---|
23 | .mailmap \
|
---|
24 | ChangeLog-2009 \
|
---|
25 | dist-check.mk \
|
---|
26 | README \
|
---|
27 | README-alpha \
|
---|
28 | THANKS.in \
|
---|
29 | TODO \
|
---|
30 | cfg.mk \
|
---|
31 | thanks-gen
|
---|
32 |
|
---|
33 | # Shortcut targets to make it easier to run expensive tests.
|
---|
34 | .PHONY: check-expensive
|
---|
35 | check-expensive:
|
---|
36 | $(MAKE) check RUN_EXPENSIVE_TESTS=yes
|
---|
37 | .PHONY: check-very-expensive
|
---|
38 | check-very-expensive: check-expensive
|
---|
39 |
|
---|
40 | # Run syntax-check rules before creating a distribution tarball.
|
---|
41 | .PHONY: run-syntax-check
|
---|
42 | run-syntax-check: all
|
---|
43 | $(AM_V_GEN)test ! -d .git || $(MAKE) syntax-check
|
---|
44 |
|
---|
45 | # Arrange so that .tarball-version appears only in the distribution
|
---|
46 | # tarball, and never in a checked-out repository.
|
---|
47 | dist-hook: gen-ChangeLog run-syntax-check
|
---|
48 | $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
|
---|
49 |
|
---|
50 | gen_start_date = 2009-11-27
|
---|
51 | .PHONY: gen-ChangeLog
|
---|
52 | gen-ChangeLog:
|
---|
53 | $(AM_V_GEN)if test -d .git; then \
|
---|
54 | log_fix="$(srcdir)/build-aux/git-log-fix"; \
|
---|
55 | test -e "$$log_fix" \
|
---|
56 | && amend_git_log="--amend=$$log_fix" \
|
---|
57 | || amend_git_log=; \
|
---|
58 | $(top_srcdir)/build-aux/gitlog-to-changelog \
|
---|
59 | $$amend_git_log --since=$(gen_start_date) > $(distdir)/cl-t && \
|
---|
60 | { rm -f $(distdir)/ChangeLog && \
|
---|
61 | mv $(distdir)/cl-t $(distdir)/ChangeLog; } \
|
---|
62 | fi
|
---|
63 |
|
---|
64 | # Sort in traditional ASCII order, regardless of the current locale;
|
---|
65 | # otherwise we may get into trouble with distinct strings that the
|
---|
66 | # current locale considers to be equal.
|
---|
67 | ASSORT = LC_ALL=C sort
|
---|
68 |
|
---|
69 | # Extract all lines up to the first one starting with "##".
|
---|
70 | prologue = perl -ne '/^\#\#/ and exit; print' $(srcdir)/THANKS.in
|
---|
71 |
|
---|
72 | THANKS: THANKS.in Makefile.am .mailmap thanks-gen
|
---|
73 | $(AM_V_GEN)rm -f $@-t $@; \
|
---|
74 | { \
|
---|
75 | $(prologue); echo; \
|
---|
76 | { perl -ne '/^$$/.../^$$/ and !/^$$/ and s/ +/\0/ and print' \
|
---|
77 | $(srcdir)/THANKS.in; \
|
---|
78 | git log --pretty=format:'%aN%x00%aE' \
|
---|
79 | | $(ASSORT) -u; \
|
---|
80 | } | $(srcdir)/thanks-gen \
|
---|
81 | | LC_ALL=en_US.UTF-8 sort -k1,1; \
|
---|
82 | echo; \
|
---|
83 | printf ';; %s\n' 'Local Variables:' 'coding: utf-8' End:; \
|
---|
84 | } > $@-t && chmod a-w $@-t && mv $@-t $@
|
---|