Makefile.am 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ## Process this file with automake to produce Makefile.in
  2. SUBDIRS = lib plugins plugins-scripts
  3. EXTRA_DIST = REQUIREMENTS SUPPORT acconfig.h subst.in subst.sh Helper.pm \
  4. contrib nagios-plugins.spec.in
  5. ACLOCAL_AMFLAGS = -I lib
  6. dist-hook:
  7. sed "s/%%{VER}/@VER@/;s/%%{REL}/@REL@/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec
  8. test:
  9. cd plugins; $(MAKE) test
  10. cd plugins-scripts; $(MAKE) test
  11. # Solaris pkgmk
  12. PACKDIR=build-pkg
  13. VERSION=@PACKAGE_VERSION@
  14. Prototype:
  15. if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
  16. cd build-solaris
  17. $(MAKE) all
  18. $(MAKE) DESTDIR=../$(PACKDIR) install
  19. cd ..
  20. echo i pkginfo> Prototype
  21. if [ -f checkinstall ] ; then echo i checkinstall>> Prototype; fi
  22. if [ -f preinstall ] ; then echo i preinstall>> Prototype; fi
  23. if [ -f postinstall ] ; then echo i postinstall>> Prototype; fi
  24. pkgproto $(PACKDIR)=/ | sed -e "s|$(LOGNAME) $(GROUP)$$|root root|" | egrep -v "(s|d) none (/|/etc|/var|/usr|/usr/local) " >> Prototype
  25. pkgmap: ../Prototype
  26. mkdir -p $(PACKDIR)/nagiosp
  27. cd $(PACKDIR)/nagiosp
  28. pkgmk -o -r / -f ../Prototype -d $(PACKDIR) nagiosp
  29. cd ..
  30. nagios.SPARC.pkg.tar.gz: pkgmap
  31. cd $(PACKDIR) && tar -cf - nagiosp | gzip -9 -c > ../nagiosp.SPARC.pkg.tar.gz
  32. pkgset: nagiosp.SPARC.pkg.tar.gz
  33. pkgclean:
  34. rm -rf Prototype nagiosp.SPARC.pkg.tar.gz