Code

4c94f2cbb31d1f7a60164360715602f239354ef8
[nagiosplug.git] / plugins-scripts / Makefile.am
1 ## Process this file with automake to produce Makefile.in
3 NP-VERSION-FILE: .FORCE-NP-VERSION-FILE
4         @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN
5 .FORCE-NP-VERSION-FILE:
7 -include NP-VERSION-FILE
9 export NP_VERSION:= $(NP_VERSION)
11 SUFFIXES = .pl .sh
13 VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t
15 libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \
16         check_log check_oracle check_rpc check_sensors check_wave \
17         check_ifstatus check_ifoperstatus check_mailq check_file_age \
18         utils.sh utils.pm
20 EXTRA_DIST=check_breeze.pl check_disk_smb.pl check_flexlm.pl check_ircd.pl \
21         check_log.sh check_ntp.pl check_oracle.sh check_rpc.pl check_sensors.sh \
22         check_ifstatus.pl check_ifoperstatus.pl check_wave.pl check_mailq.pl check_file_age.pl \
23         utils.sh.in utils.pm.in t
25 TESTS_ENVIRONMENT=perl -I $(top_builddir) -I $(top_srcdir)
27 TESTS = @SCRIPT_TEST@
29 all-local: NP-VERSION-FILE
31 test:
32         perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
33         perl -I $(top_builddir) -I $(top_srcdir) ../test.pl t/utils.t   # utils.t is excluded from above, so manually ask to test
35 test-debug:
36         NPTEST_DEBUG=1 HARNESS_VERBOSE=1 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
37         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
39 CLEANFILES=$(libexec_SCRIPTS)
41 .pl :
42         $(AWK) -f ./subst $< > $@
43         chmod +x $@
45 .sh :
46         $(AWK) -f ./subst $< > $@
47         chmod +x $@
49 clean-local:
50         rm -f NP-VERSION-FILE