aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorGravatar Jeremy T. Bouse <undrgrid@users.sourceforge.net> 2003-03-24 17:45:01 +0000
committerGravatar Jeremy T. Bouse <undrgrid@users.sourceforge.net> 2003-03-24 17:45:01 +0000
commited1fda6bd9f8983d809ff5afbdc64cdca6030b2d (patch)
tree86fcd7492c85b88297bdd42c770a29c96850bc4b /Makefile.am
parent446039608cb713726ca3551ff880a7dcd24d3bda (diff)
downloadmonitoring-plugins-ed1fda6bd9f8983d809ff5afbdc64cdca6030b2d.tar.gz
Minor changes to build for Solaris packages
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@459 f882894a-f735-0410-b71e-b25c423dba1c
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
sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@
# Solaris pkgmk
-BUILDDIR=`pwd`/build-solaris
-PACKDIR=`pwd`/build-pkg
+BUILDDIR := $(shell pwd)/build-solaris
+PACKDIR := $(shell pwd)/build-pkg
+PKGSCRIPT := $(shell pwd)/pkg/solaris/solpkg
VERSION=@PACKAGE_VERSION@
solpkg:
if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi
if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
$(MAKE) all
- $(MAKE) DESTDIR=$(BUILDDIR) install
+ $(MAKE) DESTDIR=$(BUILDDIR) prefix=/ install
$(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
- $(cd $(BUILDDIR) && `pwd`/pkg/solaris/solpkg $(PACKDIR))
+ cd $(BUILDDIR) && $(PERL) $(PKGSCRIPT) $(PACKDIR)
pkgclean:
rm -rf $(BUILDDIR) $(PACKDIR)