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