Code

subst.* was replaced by dist-hook
[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         Helper.pm       contrib nagios-plugins.spec.in
8 ACLOCAL_AMFLAGS = -I lib
10 dist-hook:
11         sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec
13 test:
14         cd plugins; $(MAKE) test
15         cd plugins-scripts; $(MAKE) test
17 nagios-plugins.spec: nagios-plugins.spec.in
18         sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@
20 # Solaris pkgmk
21 PACKDIR=build-pkg
22 VERSION=@PACKAGE_VERSION@
24 Prototype:
25         if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
26         cd build-solaris
27         $(MAKE) all
28         $(MAKE) DESTDIR=../$(PACKDIR) install
29         cd ..
30         echo i pkginfo> Prototype
31         if [ -f checkinstall ] ; then echo i checkinstall>> Prototype; fi
32         if [ -f preinstall ] ; then echo i preinstall>> Prototype; fi
33         if [ -f postinstall ] ; then echo i postinstall>> Prototype; fi
34         pkgproto $(PACKDIR)=/ | sed -e "s|$(LOGNAME) $(GROUP)$$|root root|" | egrep -v "(s|d) none (/|/etc|/var|/usr|/usr/local) " >> Prototype
36 pkgmap: ../Prototype
37         mkdir -p $(PACKDIR)/nagiosp
38         cd $(PACKDIR)/nagiosp
39         pkgmk -o -r / -f ../Prototype -d $(PACKDIR) nagiosp
40         cd ..
42 nagios.SPARC.pkg.tar.gz: pkgmap
43         cd $(PACKDIR) && tar -cf - nagiosp | gzip -9 -c > ../nagiosp.SPARC.pkg.tar.gz
45 pkgset: nagiosp.SPARC.pkg.tar.gz
47 pkgclean:
48         rm -rf Prototype nagiosp.SPARC.pkg.tar.gz