diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 5e117a5d..760d8e79 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -21,13 +21,14 @@ nagios-plugins.spec: nagios-plugins.spec.in | |||
21 | BUILDDIR := $(shell pwd)/build-solaris | 21 | BUILDDIR := $(shell pwd)/build-solaris |
22 | PACKDIR := $(shell pwd)/build-pkg | 22 | PACKDIR := $(shell pwd)/build-pkg |
23 | PKGSCRIPT := $(shell pwd)/pkg/solaris/solpkg | 23 | PKGSCRIPT := $(shell pwd)/pkg/solaris/solpkg |
24 | PKGPFX := $(shell echo ${prefix} |sed -e 's@^/usr/local@@') | ||
24 | VERSION=@PACKAGE_VERSION@ | 25 | VERSION=@PACKAGE_VERSION@ |
25 | 26 | ||
26 | solpkg: | 27 | solpkg: |
27 | if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi | 28 | if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi |
28 | if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi | 29 | if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi |
29 | $(MAKE) all | 30 | $(MAKE) all |
30 | $(MAKE) DESTDIR=$(BUILDDIR) prefix=/ install | 31 | $(MAKE) DESTDIR=$(BUILDDIR) prefix=$(PKGPFX) install |
31 | $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR) | 32 | $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR) |
32 | cd $(BUILDDIR) && $(PERL) $(PKGSCRIPT) $(PACKDIR) | 33 | cd $(BUILDDIR) && $(PERL) $(PKGSCRIPT) $(PACKDIR) |
33 | 34 | ||