Blame Makefile.am

Packit 33f14e
# Main Automakefile for GNU diffutils.
Packit 33f14e
Packit 33f14e
# Copyright (C) 2001-2002, 2004, 2006, 2009-2013, 2015-2017 Free Software
Packit 33f14e
# Foundation, Inc.
Packit 33f14e
Packit 33f14e
# This program is free software: you can redistribute it and/or modify
Packit 33f14e
# it under the terms of the GNU General Public License as published by
Packit 33f14e
# the Free Software Foundation, either version 3 of the License, or
Packit 33f14e
# (at your option) any later version.
Packit 33f14e
Packit 33f14e
# This program is distributed in the hope that it will be useful,
Packit 33f14e
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 33f14e
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 33f14e
# GNU General Public License for more details.
Packit 33f14e
Packit 33f14e
# You should have received a copy of the GNU General Public License
Packit 33f14e
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit 33f14e
Packit 33f14e
ALL_RECURSIVE_TARGETS =
Packit 33f14e
Packit 33f14e
EXTRA_DIST = bootstrap exgettext ChangeLog-2008 cfg.mk dist-check.mk
Packit 33f14e
SUBDIRS = lib src tests doc man po gnulib-tests
Packit 33f14e
Packit 33f14e
ACLOCAL_AMFLAGS = -I m4
Packit 33f14e
AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
Packit 33f14e
Packit 33f14e
# Arrange so that .tarball-version appears only in the distribution
Packit 33f14e
# tarball, and never in a checked-out repository.
Packit 33f14e
dist-hook: gen-ChangeLog
Packit 33f14e
	$(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
Packit 33f14e
Packit 33f14e
gen_start_date = '2009-11-11 15:00'
Packit 33f14e
.PHONY: gen-ChangeLog
Packit 33f14e
gen-ChangeLog:
Packit 33f14e
	$(AM_V_GEN)if test -d .git; then				\
Packit 33f14e
	  $(top_srcdir)/build-aux/gitlog-to-changelog			\
Packit 33f14e
	    --since=$(gen_start_date) > $(distdir)/cl-t &&		\
Packit 33f14e
	    { rm -f $(distdir)/ChangeLog &&				\
Packit 33f14e
	      mv $(distdir)/cl-t $(distdir)/ChangeLog; }		\
Packit 33f14e
	fi
Packit 33f14e
Packit 33f14e
ALL_RECURSIVE_TARGETS += distcheck-hook
Packit 33f14e
distcheck-hook:
Packit 33f14e
	$(MAKE) my-distcheck
Packit 33f14e
Packit 33f14e
# Some of our git hook scripts are supposed to be identical to git's samples.
Packit 33f14e
# See if they are still in sync.
Packit 33f14e
.PHONY: check-git-hook-script-sync
Packit 33f14e
check-git-hook-script-sync:
Packit 33f14e
	@fail=0;							\
Packit 33f14e
	t=$$(mktemp -d)							\
Packit 33f14e
	  && cd $$t && git init -q && cd .git/hooks			\
Packit 33f14e
	  && for i in pre-commit pre-applypatch applypatch-msg; do	\
Packit 33f14e
	       diff -u $(abs_top_srcdir)/scripts/git-hooks/$$i $$i.sample	\
Packit 33f14e
		 || fail=1;						\
Packit 33f14e
	     done;							\
Packit 33f14e
	rm -rf $$t;							\
Packit 33f14e
	test $$fail = 0