# Customize Makefile.maint for Autoconf.            -*- Makefile -*-
# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.

prev_version_file = $(srcdir)/config/prev-version.txt
move_if_change = $(srcdir)/config/move-if-change
announce_gen   = $(srcdir)/config/announce-gen
release_archive_dir = releases

# Use alpha.gnu.org for alpha and beta releases.
# Use ftp.gnu.org for major releases.
gnu_ftp_host-alpha = alpha
gnu_ftp_host-beta = alpha
gnu_ftp_host-major = ftp
gnu_rel_host = $(gnu_ftp_host-$(RELEASE_TYPE))

url_dir_list = \
  ftp://$(gnu_rel_host).gnu.org/gnu/autoconf

# Files to update automatically.
wget_files = \
  $(srcdir)/doc/standards.texi \
  $(srcdir)/doc/make-stds.texi \
  $(srcdir)/config/config.guess \
  $(srcdir)/config/config.sub \
  $(srcdir)/config/texinfo.tex

cvs_files = \
  $(srcdir)/config/elisp-comp \
  $(srcdir)/config/install-sh \
  $(srcdir)/config/mdate-sh \
  $(srcdir)/config/missing \
  $(srcdir)/config/mkinstalldirs

# Keep executables executable.  Make it robust to parallel makes.
local_updates = executable-update

.PHONY: executable-update
# autom4te-update is defined in Makefile.am.
executable-update: wget-update cvs-update autom4te-update
	chmod a+x $(cvs_files)   \
	         $(srcdir)/config/config.guess \
		 $(srcdir)/config/config.sub

# Tests not to run.
local-checks-to-skip ?= \
  po-check m4-check author_mark_check \
  strftime-check syntax-check makefile_path_separator_check \
  makefile-check
