diff --git a/Makefile.am b/Makefile.am
index 02514aa0fe64ffbd0f11cdbda89315190e6961a3..174b19b47836ebb13b1c2d2287dc319a497074c3 100644 (file)
--- a/Makefile.am
+++ b/Makefile.am
## Process this file with automake to produce Makefile.in
-SUBDIRS = lib plugins plugins-scripts
+SUBDIRS = intl lib plugins plugins-scripts po
-EXTRA_DIST = CODING FAQ LEGAL REQUIREMENTS SUPPORT \
+EXTRA_DIST = config.rpath \
+ ABOUT-NLS CODING FAQ LEGAL REQUIREMENTS SUPPORT THANKS \
Helper.pm contrib pkg nagios-plugins.spec.in
ACLOCAL_AMFLAGS = -I lib
+localedir = $(datadir)/locale
+DEFS = -DLOCALEDIR=\"$(localedir)\"
+
dist-hook:
- sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec
+ sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec
test:
cd plugins; $(MAKE) test
cd plugins-scripts; $(MAKE) test
nagios-plugins.spec: nagios-plugins.spec.in
- sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@
+ sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;" $? > $@
# Solaris pkgmk
BUILDDIR = build-solaris
$(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR)
+THANKS: THANKS.in AUTHORS
+ 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 - > $@
+
pkgclean:
rm -rf $(BUILDDIR) $(PACKDIR)