4
0

Makefile.am 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ## Process this file with automake to produce Makefile.in
  2. SUBDIRS = gl tap lib plugins plugins-scripts plugins-root po @PERLMODS_DIR@
  3. EXTRA_DIST = config.rpath \
  4. ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS CODING ChangeLog FAQ LEGAL NEWS \
  5. NP-VERSION-GEN REQUIREMENTS SUPPORT THANKS \
  6. NPTest.pm pkg nagios-plugins.spec \
  7. config_test/Makefile config_test/run_tests config_test/child_test.c \
  8. perlmods tools/build_perl_modules \
  9. tools/tinderbox_build
  10. ACLOCAL_AMFLAGS = -I gl/m4 -I m4
  11. localedir = $(datadir)/locale
  12. DEFS = -DLOCALEDIR=\"$(localedir)\"
  13. #
  14. # The ChangeLog file is auto-generated from the Git history. We let it depend
  15. # on NP-VERSION-GEN, as we bump our version number in that file.
  16. #
  17. ChangeLog: NP-VERSION-GEN
  18. $(top_srcdir)/tools/generate-change-log > $@
  19. dist-hook:
  20. $(MAKE) THANKS
  21. echo ${VERSION} >$(distdir)/release
  22. install-root:
  23. cd plugins-root && $(MAKE) $@
  24. test test-debug:
  25. cd lib && $(MAKE) $@
  26. if test "$(PERLMODS_DIR)" != ""; then cd perlmods && $(MAKE) $@; fi
  27. cd plugins && $(MAKE) $@
  28. cd plugins-scripts && $(MAKE) $@
  29. # Solaris pkgmk
  30. BUILDDIR = build-solaris
  31. PACKDIR = build-pkg
  32. PKGSCRIPT = pkg/solaris/solpkg
  33. solpkg:
  34. if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi
  35. if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
  36. $(MAKE) all
  37. $(MAKE) DESTDIR=$$PWD/$(BUILDDIR) install
  38. $(INSTALL) plugins-root/pst3 $(BUILDDIR)$(libexecdir)
  39. $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
  40. $(INSTALL) pkg/solaris/preinstall $(BUILDDIR)
  41. cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR)
  42. THANKS: THANKS.in
  43. @echo "This software is brought to you by the Nagios Plugins Development Team. However," > $@
  44. @echo "there have been many contributors to this project. Everyone below has helped in " >> $@
  45. @echo "raising bug reports, creating patches or contributing new plugins." >> $@
  46. @echo "" >> $@
  47. perl -e ' while (<>) { print STDERR "Duplicate: $$_",$$/ if ($$a{$$_}) ; $$a{$$_}++}; print sort by_last_field (keys %a); sub by_last_field { ($$a1) = $$a =~ /\s(\w+)$$/; ($$b1) = $$b =~ /\s(\w+)$$/; $$a1 cmp $$b1}' $? >> $@
  48. pkgclean:
  49. rm -rf $(BUILDDIR) $(PACKDIR)