VirtualBox

source: kBuild/trunk/src/grep/Makefile.am

Last change on this file was 3529, checked in by bird, 3 years ago

Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.

File size: 2.8 KB
Line 
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#
18AUTOMAKE_OPTIONS = gnu 1.12
19
20SUBDIRS = po lib doc src tests gnulib-tests
21
22EXTRA_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
35check-expensive:
36 $(MAKE) check RUN_EXPENSIVE_TESTS=yes
37.PHONY: check-very-expensive
38check-very-expensive: check-expensive
39
40# Run syntax-check rules before creating a distribution tarball.
41.PHONY: run-syntax-check
42run-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.
47dist-hook: gen-ChangeLog run-syntax-check
48 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
49
50gen_start_date = 2009-11-27
51.PHONY: gen-ChangeLog
52gen-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.
67ASSORT = LC_ALL=C sort
68
69# Extract all lines up to the first one starting with "##".
70prologue = perl -ne '/^\#\#/ and exit; print' $(srcdir)/THANKS.in
71
72THANKS: 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 $@
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette