Makefile.am 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ## Process this file with automake to produce Makefile.in
  2. if RELEASE_PRESENT
  3. NP_VERSION = @NP_RELEASE@
  4. else
  5. NP-VERSION-FILE: .FORCE-NP-VERSION-FILE
  6. @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN
  7. .FORCE-NP-VERSION-FILE:
  8. -include NP-VERSION-FILE
  9. endif
  10. SUFFIXES = .pl .sh
  11. VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t
  12. libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \
  13. check_log check_oracle check_rpc check_sensors check_wave \
  14. check_ifstatus check_ifoperstatus check_mailq check_file_age \
  15. utils.sh utils.pm
  16. EXTRA_DIST=check_breeze.pl check_disk_smb.pl check_flexlm.pl check_ircd.pl \
  17. check_log.sh check_oracle.sh check_rpc.pl check_sensors.sh \
  18. check_ifstatus.pl check_ifoperstatus.pl check_wave.pl check_mailq.pl check_file_age.pl \
  19. utils.sh.in utils.pm.in t
  20. EDIT = sed \
  21. -e 's|[@]NP_VERSION[@]|$(NP_VERSION)|g' \
  22. -e 's|[@]TRUSTED_PATH[@]|$(with_trusted_path)|g' \
  23. -e 's|[@]PERL[@]|$(PERL)|g' \
  24. -e 's|[@]libexecdir[@]|$(libexecdir)|g'
  25. TESTS_ENVIRONMENT=perl -I $(top_builddir) -I $(top_srcdir)
  26. TESTS = @SCRIPT_TEST@
  27. test:
  28. perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
  29. perl -I $(top_builddir) -I $(top_srcdir) ../test.pl t/utils.t # utils.t is excluded from above, so manually ask to test
  30. for SCRIPT in *.pl; do perl -wc $$SCRIPT || exit 1; done
  31. set -e; for SCRIPT in *.sh; do sh -n $$SCRIPT || exit 1; done
  32. test-debug:
  33. NPTEST_DEBUG=1 HARNESS_VERBOSE=1 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
  34. 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
  35. CLEANFILES=$(libexec_SCRIPTS)
  36. .pl :
  37. $(EDIT) $< > $@
  38. chmod +x $@
  39. .sh :
  40. $(EDIT) $< > $@
  41. chmod +x $@
  42. clean-local:
  43. rm -f NP-VERSION-FILE