Makefile.am 1.3 KB

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