Code

pst3.c must not use nagiosplug/gnulib includes
[nagiosplug.git] / plugins-scripts / Makefile.am
1 ## Process this file with automake to produce Makefile.in
3 if RELEASE_PRESENT
4 NP_VERSION = @NP_RELEASE@
5 else
6 NP-VERSION-FILE: .FORCE-NP-VERSION-FILE
7         @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN
8 .FORCE-NP-VERSION-FILE:
9 -include NP-VERSION-FILE
10 endif
12 SUFFIXES = .pl .sh
14 VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t
16 libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \
17         check_log check_oracle check_rpc check_sensors check_wave \
18         check_ifstatus check_ifoperstatus check_mailq check_file_age \
19         utils.sh utils.pm
21 EXTRA_DIST=check_breeze.pl check_disk_smb.pl check_flexlm.pl check_ircd.pl \
22         check_log.sh check_ntp.pl check_oracle.sh check_rpc.pl check_sensors.sh \
23         check_ifstatus.pl check_ifoperstatus.pl check_wave.pl check_mailq.pl check_file_age.pl \
24         utils.sh.in utils.pm.in t
26 TESTS_ENVIRONMENT=perl -I $(top_builddir) -I $(top_srcdir)
28 TESTS = @SCRIPT_TEST@
30 test:
31         perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
32         perl -I $(top_builddir) -I $(top_srcdir) ../test.pl t/utils.t   # utils.t is excluded from above, so manually ask to test
34 test-debug:
35         NPTEST_DEBUG=1 HARNESS_VERBOSE=1 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
36         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
38 CLEANFILES=$(libexec_SCRIPTS)
40 .pl :
41         NP_VERSION=$(NP_VERSION) $(AWK) -f ./subst $< > $@
42         chmod +x $@
44 .sh :
45         NP_VERSION=$(NP_VERSION) $(AWK) -f ./subst $< > $@
46         chmod +x $@
48 clean-local:
49         rm -f NP-VERSION-FILE