Code

Workaround to support more make programs
[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 ## This is undocumented and could possibly break in future versions of
8 ## automake. See:
9 ## http://article.gmane.org/gmane.comp.sysutils.automake.general/10036
10 @am__include@ @am__quote@NP-VERSION-FILE@am__quote@
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 all-local: NP-VERSION-FILE
32 test:
33         perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
34         perl -I $(top_builddir) -I $(top_srcdir) ../test.pl t/utils.t   # utils.t is excluded from above, so manually ask to test
36 test-debug:
37         NPTEST_DEBUG=1 HARNESS_VERBOSE=1 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
38         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
40 CLEANFILES=$(libexec_SCRIPTS)
42 .pl :
43         NP_VERSION=$(NP_VERSION) $(AWK) -f ./subst $< > $@
44         chmod +x $@
46 .sh :
47         NP_VERSION=$(NP_VERSION) $(AWK) -f ./subst $< > $@
48         chmod +x $@
50 clean-local:
51         rm -f NP-VERSION-FILE