summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 8cc15144..5e117a5d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,17 +18,18 @@ nagios-plugins.spec: nagios-plugins.spec.in
18 sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@ 18 sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@
19 19
20# Solaris pkgmk 20# Solaris pkgmk
21BUILDDIR=`pwd`/build-solaris 21BUILDDIR := $(shell pwd)/build-solaris
22PACKDIR=`pwd`/build-pkg 22PACKDIR := $(shell pwd)/build-pkg
23PKGSCRIPT := $(shell pwd)/pkg/solaris/solpkg
23VERSION=@PACKAGE_VERSION@ 24VERSION=@PACKAGE_VERSION@
24 25
25solpkg: 26solpkg:
26 if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi 27 if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi
27 if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi 28 if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
28 $(MAKE) all 29 $(MAKE) all
29 $(MAKE) DESTDIR=$(BUILDDIR) install 30 $(MAKE) DESTDIR=$(BUILDDIR) prefix=/ install
30 $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR) 31 $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
31 $(cd $(BUILDDIR) && `pwd`/pkg/solaris/solpkg $(PACKDIR)) 32 cd $(BUILDDIR) && $(PERL) $(PKGSCRIPT) $(PACKDIR)
32 33
33pkgclean: 34pkgclean:
34 rm -rf $(BUILDDIR) $(PACKDIR) 35 rm -rf $(BUILDDIR) $(PACKDIR)