Blame build-aux/specl.mk

Packit 437b5e
# Slingshot specl rules for make.
Packit 437b5e
Packit 437b5e
# This file is distributed with Slingshot, and licensed under the
Packit 437b5e
# terms of the MIT license reproduced below.
Packit 437b5e
Packit 437b5e
# ==================================================================== #
Packit 437b5e
# Copyright (C) 2013-2015 Gary V. Vaughan                              #
Packit 437b5e
#                                                                      #
Packit 437b5e
# Permission is hereby granted, free of charge, to any person          #
Packit 437b5e
# obtaining a copy of this software and associated documentation       #
Packit 437b5e
# files (the "Software"), to deal in the Software without restriction, #
Packit 437b5e
# including without limitation the rights to use, copy, modify, merge, #
Packit 437b5e
# publish, distribute, sublicense, and/or sell copies of the Software, #
Packit 437b5e
# and to permit persons to whom the Software is furnished to do so,    #
Packit 437b5e
# subject to the following conditions:                                 #
Packit 437b5e
#                                                                      #
Packit 437b5e
# The above copyright notice and this permission notice shall be       #
Packit 437b5e
# included in  all copies or substantial portions of the Software.     #
Packit 437b5e
#                                                                      #
Packit 437b5e
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,      #
Packit 437b5e
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF   #
Packit 437b5e
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGE-   #
Packit 437b5e
# MENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE   #
Packit 437b5e
# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF   #
Packit 437b5e
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION   #
Packit 437b5e
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.      #
Packit 437b5e
# ==================================================================== #
Packit 437b5e
Packit 437b5e
# To use this file create a list of your spec files in specl_SPECS
Packit 437b5e
# and then include this make fragment.
Packit 437b5e
Packit 437b5e
## ------ ##
Packit 437b5e
## Specl. ##
Packit 437b5e
## ------ ##
Packit 437b5e
Packit 437b5e
CHECK_ENV +=						\
Packit 437b5e
	LUA='$(LUA)'					\
Packit 437b5e
	PACKAGE_STRING='$(PACKAGE_STRING)'		\
Packit 437b5e
	abs_top_builddir='$(abs_top_builddir)'		\
Packit 437b5e
	abs_top_srcdir='$(abs_top_srcdir)'		\
Packit 437b5e
	top_builddir='$(top_builddir)'			\
Packit 437b5e
	top_srcdir='$(top_srcdir)'			\
Packit 437b5e
	$(NOTHING_ELSE)
Packit 437b5e
Packit 437b5e
check_local += specl-check-local
Packit 437b5e
specl-check-local: $(specl_SPECS)
Packit 437b5e
	$(CHECK_ENV) $(SPECL_ENV) $(SPECL) $(SPECL_OPTS) $(specl_SPECS)
Packit 437b5e
Packit 437b5e
Packit 437b5e
## ------------- ##
Packit 437b5e
## Installation. ##
Packit 437b5e
## ------------- ##
Packit 437b5e
Packit 437b5e
INSTALLCHECK_ENV +=					\
Packit 437b5e
	LUA='$(LUA)'					\
Packit 437b5e
	PACKAGE_STRING='$(PACKAGE_STRING)'		\
Packit 437b5e
	installcheck='true'				\
Packit 437b5e
	$(NOTHING_ELSE)
Packit 437b5e
Packit 437b5e
installcheck_local += specl-installcheck-local
Packit 437b5e
specl-installcheck-local: $(specl_SPECS)
Packit 437b5e
	$(INSTALLCHECK_ENV) $(SPECL_ENV) $(SPECL) $(SPECL_OPTS) $(specl_SPECS)
Packit 437b5e
Packit 437b5e
Packit 437b5e
## ------------- ##
Packit 437b5e
## Distribution. ##
Packit 437b5e
## ------------- ##
Packit 437b5e
Packit 437b5e
EXTRA_DIST +=						\
Packit 437b5e
	$(specl_SPECS)					\
Packit 437b5e
	$(NOTHING_ELSE)