fbb0b3765500e8828b6cc9912f09d01ae531dde2
[platform/upstream/diffutils.git] / Makefile.am
1 # Main Automakefile for GNU diffutils.
2
3 # Copyright (C) 2001-2002, 2004, 2006, 2009-2011 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 of the License, or
8 # (at your option) 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 ALL_RECURSIVE_TARGETS =
19
20 EXTRA_DIST = bootstrap exgettext ChangeLog-2008 cfg.mk dist-check.mk
21 SUBDIRS = lib src tests doc man po ms gnulib-tests
22
23 ACLOCAL_AMFLAGS = -I m4
24 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
25
26 # Arrange so that .tarball-version appears only in the distribution
27 # tarball, and never in a checked-out repository.
28 dist-hook: gen-ChangeLog
29         $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
30
31 gen_start_date = '2009-11-11 15:00'
32 .PHONY: gen-ChangeLog
33 gen-ChangeLog:
34         $(AM_V_GEN)if test -d .git; then                                \
35           $(top_srcdir)/build-aux/gitlog-to-changelog                   \
36             --since=$(gen_start_date) > $(distdir)/cl-t;                \
37           rm -f $(distdir)/ChangeLog;                                   \
38           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
39         fi
40
41 ALL_RECURSIVE_TARGETS += distcheck-hook
42 distcheck-hook:
43         $(MAKE) my-distcheck