Makefile.am 1.4 KB

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