Blame cfg.mk

Packit Service fdd496
# Customize maint.mk                           -*- makefile -*-
Packit Service fdd496
# Copyright (C) 2003-2013, 2015-2017 Free Software Foundation, Inc.
Packit Service fdd496
Packit Service fdd496
# This program is free software: you can redistribute it and/or modify
Packit Service fdd496
# it under the terms of the GNU General Public License as published by
Packit Service fdd496
# the Free Software Foundation, either version 3 of the License, or
Packit Service fdd496
# (at your option) any later version.
Packit Service fdd496
Packit Service fdd496
# This program is distributed in the hope that it will be useful,
Packit Service fdd496
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service fdd496
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service fdd496
# GNU General Public License for more details.
Packit Service fdd496
Packit Service fdd496
# You should have received a copy of the GNU General Public License
Packit Service fdd496
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit Service fdd496
Packit Service fdd496
# Use the direct link.  This is guaranteed to work immediately, while
Packit Service fdd496
# it can take a while for the faster mirror links to become usable.
Packit Service fdd496
url_dir_list = http://ftp.gnu.org/gnu/$(PACKAGE)
Packit Service fdd496
Packit Service fdd496
# Used in maint.mk's web-manual rule
Packit Service fdd496
manual_title = Comparing and Merging Files
Packit Service fdd496
Packit Service fdd496
# Tests not to run as part of "make distcheck".
Packit Service fdd496
local-checks-to-skip =		\
Packit Service fdd496
  sc_error_message_period	\
Packit Service fdd496
  sc_error_message_uppercase
Packit Service fdd496
Packit Service fdd496
# Tools used to bootstrap this package, used for "announcement".
Packit Service fdd496
bootstrap-tools = autoconf,automake,gnulib
Packit Service fdd496
Packit Service fdd496
# Now that we have better tests, make this the default.
Packit Service fdd496
export VERBOSE = yes
Packit Service fdd496
Packit Service fdd496
old_NEWS_hash = 0216ec3bf3e3322f33afd4e949a9a29b
Packit Service fdd496
Packit Service fdd496
# Tell maint.mk's syntax-check rules that diff gets config.h directly or
Packit Service fdd496
# via diff.h or system.h.
Packit Service fdd496
config_h_header = (<config\.h>|"(diff|system)\.h")
Packit Service fdd496
Packit Service fdd496
update-copyright-env = \
Packit Service fdd496
  UPDATE_COPYRIGHT_USE_INTERVALS=1 \
Packit Service fdd496
  UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79
Packit Service fdd496
Packit Service fdd496
-include $(srcdir)/dist-check.mk
Packit Service fdd496
Packit Service fdd496
_cf_state_dir ?= .config-state
Packit Service fdd496
_date_time := $(shell date +%F.%T)
Packit Service fdd496
config-compare:
Packit Service fdd496
	diff -u					\
Packit Service fdd496
	  -I'define VERSION '			\
Packit Service fdd496
	  -I'define PACKAGE_VERSION '		\
Packit Service fdd496
	  -I'define PACKAGE_STRING '		\
Packit Service fdd496
	  $(_cf_state_dir)/latest lib/config.h
Packit Service fdd496
	diff -u					\
Packit Service fdd496
	  -I'$(PACKAGE_NAME)'			\
Packit Service fdd496
	  -I'[SD]\["VERSION"\]'			\
Packit Service fdd496
	  -I'[SD]\["PACKAGE_VERSION"\]'		\
Packit Service fdd496
	  -I'D\["PACKAGE_STRING"\]'		\
Packit Service fdd496
	  $(_cf_state_dir)/latest config.status
Packit Service fdd496
Packit Service fdd496
config-save:
Packit Service fdd496
	$(MAKE) --quiet config-compare > /dev/null 2>&1 \
Packit Service fdd496
	  && { echo no change; exit 1; } || :
Packit Service fdd496
	mkdir -p $(_cf_state_dir)/$(_date_time)
Packit Service fdd496
	ln -nsf $(_date_time) $(_cf_state_dir)/latest
Packit Service fdd496
	cp lib/config.h config.status $(_cf_state_dir)/latest
Packit Service fdd496
Packit Service fdd496
exclude_file_name_regexp--sc_space_tab = ^gl/lib/.*\.c\.diff$$
Packit Service fdd496
Packit Service fdd496
# Tell gnulib's tight_scope rule that we mark externs with XTERN
Packit Service fdd496
export _gl_TS_extern = extern|XTERN