1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = gl tap lib plugins plugins-scripts plugins-root po @PERLMODS_DIR@
5 EXTRA_DIST = config.rpath \
6 ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS BUGS CODING FAQ LEGAL NEWS \
7 NP-VERSION-GEN REQUIREMENTS SUPPORT THANKS \
8 NPTest.pm contrib pkg nagios-plugins.spec \
9 config_test/Makefile config_test/run_tests config_test/child_test.c \
10 perlmods tools/build_perl_modules \
13 ACLOCAL_AMFLAGS = -I gl/m4 -I m4
15 localedir = $(datadir)/locale
16 DEFS = -DLOCALEDIR=\"$(localedir)\"
19 make THANKS nagios-plugins.spec pkg/fedora/nagios-plugins.spec
20 echo ${VERSION} >$(distdir)/release
23 cd plugins-root && $(MAKE) $@
27 if test "$(PERLMODS_DIR)" != ""; then cd perlmods && $(MAKE) $@; fi
28 cd plugins && $(MAKE) $@
29 cd plugins-scripts && $(MAKE) $@
31 nagios-plugins.spec: nagios-plugins.spec.in
32 sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;s/^%%{requires}$$//" $? > $@
34 pkg/fedora/nagios-plugins.spec: nagios-plugins.spec.in
35 $(top_srcdir)/mkinstalldirs pkg/fedora
36 sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;/^# Requires$$/r $(top_srcdir)/pkg/fedora/requires" $? > $@
39 BUILDDIR = build-solaris
41 PKGSCRIPT = pkg/solaris/solpkg
44 if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi
45 if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
47 $(MAKE) DESTDIR=$$PWD/$(BUILDDIR) install
48 $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
49 cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR)
52 @echo "This software is brought to you by the Nagios Plugins Development Team. However," > $@
53 @echo "there have been many contributors to this project. Everyone below has helped in " >> $@
54 @echo "raising bug reports, creating patches or contributing new plugins." >> $@
56 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}' $? >> $@
59 rm -rf $(BUILDDIR) $(PACKDIR)