Imported Upstream version 2.14
[platform/upstream/grep.git] / Makefile.am
1 # Process this file with automake to create Makefile.in
2 #
3 # Copyright 1997-1998, 2005-2012 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 <http://www.gnu.org/licenses/>.
17 #
18 AUTOMAKE_OPTIONS = gnu 1.10
19 ACLOCAL_AMFLAGS = -I m4
20
21 SUBDIRS = po lib doc src tests gnulib-tests
22
23 EXTRA_DIST =            \
24   ChangeLog-2009        \
25   README                \
26   README-alpha          \
27   TODO                  \
28   cfg.mk
29
30 # Shortcut target to make it easier to run expensive tests.
31 .PHONY: check-expensive
32 check-expensive:
33         $(MAKE) check RUN_EXPENSIVE_TESTS=yes
34
35 # Run syntax-check rules before creating a distribution tarball.
36 .PHONY: run-syntax-check
37 run-syntax-check:
38         $(AM_V_GEN)test ! -d .git || $(MAKE) syntax-check
39
40 # Arrange so that .tarball-version appears only in the distribution
41 # tarball, and never in a checked-out repository.
42 dist-hook: gen-ChangeLog run-syntax-check
43         $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
44
45 gen_start_date = 2009-11-27
46 .PHONY: gen-ChangeLog
47 gen-ChangeLog:
48         $(AM_V_GEN)if test -d .git; then                                \
49           $(top_srcdir)/build-aux/gitlog-to-changelog                   \
50             --amend=$(srcdir)/build-aux/git-log-fix                     \
51             --since=$(gen_start_date) > $(distdir)/cl-t;                \
52           rm -f $(distdir)/ChangeLog;                                   \
53           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
54         fi