Blame cfg.mk

Packit 33f14e
# Customize maint.mk                           -*- makefile -*-
Packit 33f14e
# Copyright (C) 2003-2013, 2015-2017 Free Software 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
# Use the direct link.  This is guaranteed to work immediately, while
Packit 33f14e
# it can take a while for the faster mirror links to become usable.
Packit 33f14e
url_dir_list = http://ftp.gnu.org/gnu/$(PACKAGE)
Packit 33f14e
Packit 33f14e
# Used in maint.mk's web-manual rule
Packit 33f14e
manual_title = Comparing and Merging Files
Packit 33f14e
Packit 33f14e
# Tests not to run as part of "make distcheck".
Packit 33f14e
local-checks-to-skip =		\
Packit 33f14e
  sc_error_message_period	\
Packit 33f14e
  sc_error_message_uppercase
Packit 33f14e
Packit 33f14e
# Tools used to bootstrap this package, used for "announcement".
Packit 33f14e
bootstrap-tools = autoconf,automake,gnulib
Packit 33f14e
Packit 33f14e
# Now that we have better tests, make this the default.
Packit 33f14e
export VERBOSE = yes
Packit 33f14e
Packit 33f14e
old_NEWS_hash = 0216ec3bf3e3322f33afd4e949a9a29b
Packit 33f14e
Packit 33f14e
# Tell maint.mk's syntax-check rules that diff gets config.h directly or
Packit 33f14e
# via diff.h or system.h.
Packit 33f14e
config_h_header = (<config\.h>|"(diff|system)\.h")
Packit 33f14e
Packit 33f14e
update-copyright-env = \
Packit 33f14e
  UPDATE_COPYRIGHT_USE_INTERVALS=1 \
Packit 33f14e
  UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79
Packit 33f14e
Packit 33f14e
-include $(srcdir)/dist-check.mk
Packit 33f14e
Packit 33f14e
_cf_state_dir ?= .config-state
Packit 33f14e
_date_time := $(shell date +%F.%T)
Packit 33f14e
config-compare:
Packit 33f14e
	diff -u					\
Packit 33f14e
	  -I'define VERSION '			\
Packit 33f14e
	  -I'define PACKAGE_VERSION '		\
Packit 33f14e
	  -I'define PACKAGE_STRING '		\
Packit 33f14e
	  $(_cf_state_dir)/latest lib/config.h
Packit 33f14e
	diff -u					\
Packit 33f14e
	  -I'$(PACKAGE_NAME)'			\
Packit 33f14e
	  -I'[SD]\["VERSION"\]'			\
Packit 33f14e
	  -I'[SD]\["PACKAGE_VERSION"\]'		\
Packit 33f14e
	  -I'D\["PACKAGE_STRING"\]'		\
Packit 33f14e
	  $(_cf_state_dir)/latest config.status
Packit 33f14e
Packit 33f14e
config-save:
Packit 33f14e
	$(MAKE) --quiet config-compare > /dev/null 2>&1 \
Packit 33f14e
	  && { echo no change; exit 1; } || :
Packit 33f14e
	mkdir -p $(_cf_state_dir)/$(_date_time)
Packit 33f14e
	ln -nsf $(_date_time) $(_cf_state_dir)/latest
Packit 33f14e
	cp lib/config.h config.status $(_cf_state_dir)/latest
Packit 33f14e
Packit 33f14e
exclude_file_name_regexp--sc_space_tab = ^gl/lib/.*\.c\.diff$$
Packit 33f14e
Packit 33f14e
# Tell gnulib's tight_scope rule that we mark externs with XTERN
Packit 33f14e
export _gl_TS_extern = extern|XTERN