1 # Main Automakefile for GNU diffutils.
3 # Copyright (C) 2001-2002, 2004, 2006, 2009-2013 Free Software Foundation, Inc.
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.
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.
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/>.
18 ALL_RECURSIVE_TARGETS =
20 EXTRA_DIST = bootstrap exgettext ChangeLog-2008 cfg.mk dist-check.mk
21 SUBDIRS = lib src tests doc man po gnulib-tests
23 ACLOCAL_AMFLAGS = -I m4
24 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
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
31 gen_start_date = '2009-11-11 15:00'
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; \
41 ALL_RECURSIVE_TARGETS += distcheck-hook