a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt# Copyright (c) 2007 The NetBSD Foundation, Inc.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# All rights reserved.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Redistribution and use in source and binary forms, with or without
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# modification, are permitted provided that the following conditions
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# are met:
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# 1. Redistributions of source code must retain the above copyright
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# notice, this list of conditions and the following disclaimer.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# 2. Redistributions in binary form must reproduce the above copyright
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# notice, this list of conditions and the following disclaimer in the
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# documentation and/or other materials provided with the distribution.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntlibexec_PROGRAMS += atf-sh/atf-check
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_sh_atf_check_SOURCES = atf-sh/atf-check.cpp
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Huntatf_sh_atf_check_LDADD = $(ATF_CXX_LIBS)
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrewsatf_sh_atf_check_CPPFLAGS = -DATF_SHELL=\"$(ATF_SHELL)\"
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntdist_man_MANS += atf-sh/atf-check.1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntbin_PROGRAMS += atf-sh/atf-sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_sh_atf_sh_SOURCES = atf-sh/atf-sh.cpp
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrewsatf_sh_atf_sh_CPPFLAGS = -DATF_LIBEXECDIR=\"$(libexecdir)\" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews -DATF_PKGDATADIR=\"$(pkgdatadir)\" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews -DATF_SHELL=\"$(ATF_SHELL)\"
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Huntatf_sh_atf_sh_LDADD = $(ATF_CXX_LIBS)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntdist_man_MANS += atf-sh/atf-sh.1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_sh_DATA = atf-sh/libatf-sh.subr
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_shdir = $(pkgdatadir)
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += $(atf_sh_DATA)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrewsdist_man_MANS += atf-sh/atf-sh.3
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Huntatf_aclocal_DATA += atf-sh/atf-sh.m4
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan HuntEXTRA_DIST += atf-sh/atf-sh.m4
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Huntatf_shpkgconfigdir = $(atf_pkgconfigdir)
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Huntatf_shpkgconfig_DATA = atf-sh/atf-sh.pc
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan HuntCLEANFILES += atf-sh/atf-sh.pc
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan HuntEXTRA_DIST += atf-sh/atf-sh.pc.in
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Huntatf-sh/atf-sh.pc: $(srcdir)/atf-sh/atf-sh.pc.in Makefile
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews $(AM_V_GEN)test -d atf-sh || mkdir -p atf-sh; \
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt sed -e 's#__ATF_VERSION__#$(PACKAGE_VERSION)#g' \
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt -e 's#__EXEC_PREFIX__#$(exec_prefix)#g' \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews <$(srcdir)/atf-sh/atf-sh.pc.in >atf-sh/atf-sh.pc.tmp; \
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt mv atf-sh/atf-sh.pc.tmp atf-sh/atf-sh.pc
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunttests_atf_sh_DATA = atf-sh/Atffile \
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt atf-sh/Kyuafile
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_shdir = $(pkgtestsdir)/atf-sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += $(tests_atf_sh_DATA)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_sh_SCRIPTS = atf-sh/misc_helpers
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntCLEANFILES += atf-sh/misc_helpers
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += atf-sh/misc_helpers.sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf-sh/misc_helpers: $(srcdir)/atf-sh/misc_helpers.sh
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews $(AM_V_GEN)src="$(srcdir)/atf-sh/misc_helpers.sh"; \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt dst="atf-sh/misc_helpers"; $(BUILD_SH_TP)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_sh_SCRIPTS += atf-sh/atf_check_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntCLEANFILES += atf-sh/atf_check_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += atf-sh/atf_check_test.sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf-sh/atf_check_test: $(srcdir)/atf-sh/atf_check_test.sh
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews $(AM_V_GEN)src="$(srcdir)/atf-sh/atf_check_test.sh"; \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt dst="atf-sh/atf_check_test"; $(BUILD_SH_TP)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_sh_SCRIPTS += atf-sh/atf-check_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntCLEANFILES += atf-sh/atf-check_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += atf-sh/atf-check_test.sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf-sh/atf-check_test: $(srcdir)/atf-sh/atf-check_test.sh
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews $(AM_V_GEN)src="$(srcdir)/atf-sh/atf-check_test.sh"; \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt dst="atf-sh/atf-check_test"; $(BUILD_SH_TP)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_sh_SCRIPTS += atf-sh/config_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntCLEANFILES += atf-sh/config_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += atf-sh/config_test.sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf-sh/config_test: $(srcdir)/atf-sh/config_test.sh
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews $(AM_V_GEN)src="$(srcdir)/atf-sh/config_test.sh"; \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt dst="atf-sh/config_test"; $(BUILD_SH_TP)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_sh_SCRIPTS += atf-sh/integration_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntCLEANFILES += atf-sh/integration_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += atf-sh/integration_test.sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf-sh/integration_test: $(srcdir)/atf-sh/integration_test.sh
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews $(AM_V_GEN)src="$(srcdir)/atf-sh/integration_test.sh"; \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews dst="atf-sh/integration_test"; \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews substs="s,__ATF_SH__,$(exec_prefix)/bin/atf-sh,g"; $(BUILD_SH_TP)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_sh_SCRIPTS += atf-sh/normalize_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntCLEANFILES += atf-sh/normalize_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += atf-sh/normalize_test.sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf-sh/normalize_test: $(srcdir)/atf-sh/normalize_test.sh
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews $(AM_V_GEN)src="$(srcdir)/atf-sh/normalize_test.sh"; \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt dst="atf-sh/normalize_test"; $(BUILD_SH_TP)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_sh_SCRIPTS += atf-sh/tc_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntCLEANFILES += atf-sh/tc_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += atf-sh/tc_test.sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf-sh/tc_test: $(srcdir)/atf-sh/tc_test.sh
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews $(AM_V_GEN)src="$(srcdir)/atf-sh/tc_test.sh"; \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt dst="atf-sh/tc_test"; $(BUILD_SH_TP)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_sh_SCRIPTS += atf-sh/tp_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntCLEANFILES += atf-sh/tp_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += atf-sh/tp_test.sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf-sh/tp_test: $(srcdir)/atf-sh/tp_test.sh
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews $(AM_V_GEN)src="$(srcdir)/atf-sh/tp_test.sh"; \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt dst="atf-sh/tp_test"; $(BUILD_SH_TP)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8