diff options
author | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-24 17:45:01 (GMT) |
---|---|---|
committer | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-24 17:45:01 (GMT) |
commit | ed1fda6bd9f8983d809ff5afbdc64cdca6030b2d (patch) | |
tree | 86fcd7492c85b88297bdd42c770a29c96850bc4b /Makefile.am | |
parent | 446039608cb713726ca3551ff880a7dcd24d3bda (diff) | |
download | monitoring-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.am | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index 8cc1514..5e117a5 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 |
21 | BUILDDIR=`pwd`/build-solaris | 21 | BUILDDIR := $(shell pwd)/build-solaris |
22 | PACKDIR=`pwd`/build-pkg | 22 | PACKDIR := $(shell pwd)/build-pkg |
23 | PKGSCRIPT := $(shell pwd)/pkg/solaris/solpkg | ||
23 | VERSION=@PACKAGE_VERSION@ | 24 | VERSION=@PACKAGE_VERSION@ |
24 | 25 | ||
25 | solpkg: | 26 | solpkg: |
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 | ||
33 | pkgclean: | 34 | pkgclean: |
34 | rm -rf $(BUILDDIR) $(PACKDIR) | 35 | rm -rf $(BUILDDIR) $(PACKDIR) |