1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = gl lib plugins plugins-scripts plugins-root po @PERLMODS_DIR@
5 # Have to list TAP_DIR manually to get in distribution
6 EXTRA_DIST = config.rpath \
7 ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS BUGS CODING FAQ LEGAL NEWS \
8 REQUIREMENTS SUPPORT THANKS \
9 NPTest.pm contrib pkg nagios-plugins.spec \
10 config_test/Makefile config_test/run_tests config_test/child_test.c \
11 perlmods tools/build_perl_modules \
12 tools/tinderbox_build \
15 ACLOCAL_AMFLAGS = -I gl/m4 -I m4
17 localedir = $(datadir)/locale
18 DEFS = -DLOCALEDIR=\"$(localedir)\"
21 make THANKS nagios-plugins.spec pkg/fedora/nagios-plugins.spec
22 rm -rf `find $(distdir) -name .svn`
25 cd plugins-root && $(MAKE) $@
28 cd @TAP_DIR@ && $(MAKE)
32 if test "$(PERLMODS_DIR)" != ""; then cd perlmods && $(MAKE) $@; fi
33 cd plugins && $(MAKE) $@
34 cd plugins-scripts && $(MAKE) $@
36 nagios-plugins.spec: nagios-plugins.spec.in
37 sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;s/^%%{requires}$$//" $? > $@
39 pkg/fedora/nagios-plugins.spec: nagios-plugins.spec.in
40 $(top_srcdir)/mkinstalldirs pkg/fedora
41 sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;/^# Requires$$/r $(top_srcdir)/pkg/fedora/requires" $? > $@
44 BUILDDIR = build-solaris
46 PKGSCRIPT = pkg/solaris/solpkg
49 if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi
50 if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
52 $(MAKE) DESTDIR=$$PWD/$(BUILDDIR) install
53 $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
54 cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR)
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." >> $@
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}' $? >> $@
64 rm -rf $(BUILDDIR) $(PACKDIR)