~ubuntu-branches/ubuntu/precise/nagios-plugins/precise-proposed

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2004-06-15 15:37:48 UTC
  • Revision ID: james.westby@ubuntu.com-20040615153748-pq7702qdzghqfcns
Tags: upstream-1.3.1.0
ImportĀ upstreamĀ versionĀ 1.3.1.0

Show diffs side-by-side

added added

removed removed

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