Code

Updated AUTHORS to include all contributors listed in comments in code and
[nagiosplug.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = intl lib plugins plugins-scripts po
5 EXTRA_DIST = config.rpath \
6         ABOUT-NLS CODING FAQ LEGAL REQUIREMENTS SUPPORT THANKS \
7         Helper.pm contrib pkg nagios-plugins.spec.in
9 ACLOCAL_AMFLAGS = -I lib
11 localedir = $(datadir)/locale
12 DEFS = -DLOCALEDIR=\"$(localedir)\"
14 dist-hook:
15         sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec
17 test:
18         cd plugins; $(MAKE) test
19         cd plugins-scripts; $(MAKE) test
21 nagios-plugins.spec: nagios-plugins.spec.in
22         sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;" $? > $@
24 # Solaris pkgmk
25 BUILDDIR = build-solaris
26 PACKDIR = build-pkg
27 PKGSCRIPT = pkg/solaris/solpkg
29 solpkg:
30         if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi
31         if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
32         $(MAKE) all
33         $(MAKE) DESTDIR=$$PWD/$(BUILDDIR) install
34         $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
35         cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR)
37 THANKS: THANKS.in AUTHORS
38         perl -e ' @a=<>; print sort by_last_field @a; sub by_last_field { ($$a1) = $$a =~ /\s(\w+)$$/; ($$b1) = $$b =~ /\s(\w+)$$/; $$a1 cmp $$b1}' AUTHORS | cat THANKS.in - > $@
40 pkgclean:
41         rm -rf $(BUILDDIR) $(PACKDIR)