Makefile.am 1.3 KB

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