Blame GNUmakefile

Packit 437b5e
# Maintainer rules.
Packit 437b5e
#
Packit 437b5e
# Copyright (C) 2013-2015 Gary V. Vaughan
Packit 437b5e
# Written by Gary V. Vaughan, 2013
Packit 437b5e
#
Packit 437b5e
# This program is free software; you can redistribute it and/or modify it
Packit 437b5e
# under the terms of the GNU General Public License as published by
Packit 437b5e
# the Free Software Foundation; either version 3, or (at your option)
Packit 437b5e
# any later version.
Packit 437b5e
#
Packit 437b5e
# This program is distributed in the hope that it will be useful, but
Packit 437b5e
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 437b5e
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 437b5e
# General Public License for more details.
Packit 437b5e
#
Packit 437b5e
# You should have received a copy of the GNU General Public License
Packit 437b5e
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit 437b5e
Packit 437b5e
ME = GNUmakefile
Packit 437b5e
Packit 437b5e
# If the user runs GNU make but didn't ./configure yet, do it for them.
Packit 437b5e
dont-forget-to-bootstrap = $(wildcard Makefile.in)
Packit 437b5e
Packit 437b5e
ifeq ($(dont-forget-to-bootstrap),)
Packit 437b5e
Packit 437b5e
## Don't redo any pedantic rock version checks, incase they derail
Packit 437b5e
## a subdirectory bootstrap of slingshot.
Packit 437b5e
Packit 437b5e
%::
Packit 437b5e
	@echo '$(ME): rebootstrap'
Packit 437b5e
	@test -f Makefile.in || ./bootstrap --skip-rock-checks
Packit 437b5e
	@test -f Makefile || ./configure
Packit 437b5e
	$(MAKE) $@
Packit 437b5e
Packit 437b5e
else
Packit 437b5e
Packit 437b5e
Packit 437b5e
include build-aux/release.mk
Packit 437b5e
include build-aux/sanity.mk
Packit 437b5e
Packit 437b5e
# Run sanity checks as part of distcheck.
Packit 437b5e
distcheck: $(local-check)
Packit 437b5e
Packit 437b5e
Packit 437b5e
## ------------------------- ##
Packit 437b5e
## Copyright Notice Updates. ##
Packit 437b5e
## ------------------------- ##
Packit 437b5e
Packit 437b5e
# If you want to set UPDATE_COPYRIGHT_* environment variables,
Packit 437b5e
# for the build-aux/update-copyright script: set the assignments
Packit 437b5e
# in this variable in local.mk.
Packit 437b5e
update_copyright_env ?=
Packit 437b5e
Packit 437b5e
# Run this rule once per year (usually early in January)
Packit 437b5e
# to update all FSF copyright year lists in your project.
Packit 437b5e
# If you have an additional project-specific rule,
Packit 437b5e
# add it in local.mk along with a line 'update-copyright: prereq'.
Packit 437b5e
# By default, exclude all variants of COPYING; you can also
Packit 437b5e
# add exemptions (such as ChangeLog..* for rotated change logs)
Packit 437b5e
# in the file .x-update-copyright.
Packit 437b5e
.PHONY: update-copyright
Packit 437b5e
update-copyright:
Packit 437b5e
	$(AM_V_GEN)grep -l -w Copyright \
Packit 437b5e
	$$(export VC_LIST_EXCEPT_DEFAULT=COPYING && $(VC_LIST_EXCEPT)) \
Packit 437b5e
	| $(update_copyright_env) xargs $(srcdir)/build-aux/$@
Packit 437b5e
Packit 437b5e
Packit 437b5e
## ------ ##
Packit 437b5e
## Specl. ##
Packit 437b5e
## ------ ##
Packit 437b5e
Packit 437b5e
# Use 'make check V=1' for verbose output, or set SPECL_OPTS to
Packit 437b5e
# pass alternative options to specl command.
Packit 437b5e
Packit 437b5e
SPECL_OPTS     ?=
Packit 437b5e
SPECL_OPTS     += $(specl_verbose_$(V))
Packit 437b5e
specl_verbose_  = $(specl_verbose_$(AM_DEFAULT_VERBOSITY))
Packit 437b5e
specl_verbose_0 =
Packit 437b5e
specl_verbose_1 = --verbose --formatter=report
Packit 437b5e
Packit 437b5e
Packit 437b5e
endif