2013-11-26 22:53:19 +00:00
## Process this file with automake to produce Makefile.in
2013-11-26 22:56:50 +00:00
i f R E L E A S E _ P R E S E N T
2013-11-26 22:57:29 +00:00
NP_VERSION = @NP_RELEASE@
2013-11-26 22:56:50 +00:00
e l s e
NP-VERSION-FILE : .FORCE -NP -VERSION -FILE
@$( SHELL_PATH) $( top_srcdir) /NP-VERSION-GEN
.FORCE-NP-VERSION-FILE :
- i n c l u d e N P - V E R S I O N - F I L E
e n d i f
2013-11-26 22:53:19 +00:00
SUFFIXES = .pl .sh
VPATH = $( top_srcdir) $( top_srcdir) /plugins-scripts $( top_srcdir) /plugins-scripts/t
libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \
check_log check_oracle check_rpc check_sensors check_wave \
check_ifstatus check_ifoperstatus check_mailq check_file_age \
utils.sh utils.pm
EXTRA_DIST = check_breeze.pl check_disk_smb.pl check_flexlm.pl check_ircd.pl \
2014-07-11 19:01:00 +00:00
check_log.sh check_oracle.sh check_rpc.pl check_sensors.sh \
2013-11-26 22:53:19 +00:00
check_ifstatus.pl check_ifoperstatus.pl check_wave.pl check_mailq.pl check_file_age.pl \
utils.sh.in utils.pm.in t
2014-07-11 19:01:00 +00:00
EDIT = sed \
-e 's|[@]NP_VERSION[@]|$(NP_VERSION)|g' \
-e 's|[@]TRUSTED_PATH[@]|$(with_trusted_path)|g' \
-e 's|[@]PERL[@]|$(PERL)|g' \
-e 's|[@]libexecdir[@]|$(libexecdir)|g'
2013-11-26 22:53:19 +00:00
TESTS_ENVIRONMENT = perl -I $( top_builddir) -I $( top_srcdir)
TESTS = @SCRIPT_TEST@
test :
perl -I $( top_builddir) -I $( top_srcdir) ../test.pl
perl -I $( top_builddir) -I $( top_srcdir) ../test.pl t/utils.t # utils.t is excluded from above, so manually ask to test
2016-11-30 11:36:55 +00:00
for SCRIPT in *.pl; do perl -wc $$ SCRIPT || exit 1; done
set -e; for SCRIPT in *.sh; do sh -n $$ SCRIPT || exit 1; done
2013-11-26 22:53:19 +00:00
2013-11-26 22:54:57 +00:00
test-debug :
NPTEST_DEBUG = 1 HARNESS_VERBOSE = 1 perl -I $( top_builddir) -I $( top_srcdir) ../test.pl
NPTEST_DEBUG = 1 HARNESS_VERBOSE = 1 perl -I $( top_builddir) -I $( top_srcdir) ../test.pl t/utils.t # utils.t is excluded from above, so manually ask to test
2013-11-26 22:53:19 +00:00
CLEANFILES = $( libexec_SCRIPTS)
.pl :
2014-07-11 19:01:00 +00:00
$( EDIT) $< > $@
2013-11-26 22:53:19 +00:00
chmod +x $@
.sh :
2014-07-11 19:01:00 +00:00
$( EDIT) $< > $@
2013-11-26 22:53:19 +00:00
chmod +x $@
2013-11-26 22:56:50 +00:00
clean-local :
rm -f NP-VERSION-FILE