Makefile.am 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. 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. nagios-plugins.spec: nagios-plugins.spec.in
  13. sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@
  14. # Solaris pkgmk
  15. PACKDIR=build-pkg
  16. VERSION=@PACKAGE_VERSION@
  17. Prototype:
  18. if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
  19. cd build-solaris
  20. $(MAKE) all
  21. $(MAKE) DESTDIR=../$(PACKDIR) install
  22. cd ..
  23. echo i pkginfo> Prototype
  24. if [ -f checkinstall ] ; then echo i checkinstall>> Prototype; fi
  25. if [ -f preinstall ] ; then echo i preinstall>> Prototype; fi
  26. if [ -f postinstall ] ; then echo i postinstall>> Prototype; fi
  27. pkgproto $(PACKDIR)=/ | sed -e "s|$(LOGNAME) $(GROUP)$$|root root|" | egrep -v "(s|d) none (/|/etc|/var|/usr|/usr/local) " >> Prototype
  28. pkgmap: ../Prototype
  29. mkdir -p $(PACKDIR)/nagiosp
  30. cd $(PACKDIR)/nagiosp
  31. pkgmk -o -r / -f ../Prototype -d $(PACKDIR) nagiosp
  32. cd ..
  33. nagios.SPARC.pkg.tar.gz: pkgmap
  34. cd $(PACKDIR) && tar -cf - nagiosp | gzip -9 -c > ../nagiosp.SPARC.pkg.tar.gz
  35. pkgset: nagiosp.SPARC.pkg.tar.gz
  36. pkgclean:
  37. rm -rf Prototype nagiosp.SPARC.pkg.tar.gz