Code

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