aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-05-14 21:39:48 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-05-14 21:39:48 +0000
commit7abe670895f8c4921c93d518ccb56170cdc33629 (patch)
tree1f4e11eb8469689b6380d49aa7fab0dd29eea5e9 /Makefile.am
parent61b0173555ec08f2b03182c9113f1abbc40a4291 (diff)
downloadmonitoring-plugins-7abe670895f8c4921c93d518ccb56170cdc33629.tar.gz
Remove dependency on gnu make
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@509 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am12
1 files changed, 5 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am
index 760d8e79..02514aa0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,19 +18,17 @@ nagios-plugins.spec: nagios-plugins.spec.in
sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@
# Solaris pkgmk
-BUILDDIR := $(shell pwd)/build-solaris
-PACKDIR := $(shell pwd)/build-pkg
-PKGSCRIPT := $(shell pwd)/pkg/solaris/solpkg
-PKGPFX := $(shell echo ${prefix} |sed -e 's@^/usr/local@@')
-VERSION=@PACKAGE_VERSION@
+BUILDDIR = build-solaris
+PACKDIR = build-pkg
+PKGSCRIPT = pkg/solaris/solpkg
solpkg:
if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi
if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
$(MAKE) all
- $(MAKE) DESTDIR=$(BUILDDIR) prefix=$(PKGPFX) install
+ $(MAKE) DESTDIR=$$PWD/$(BUILDDIR) install
$(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
- cd $(BUILDDIR) && $(PERL) $(PKGSCRIPT) $(PACKDIR)
+ cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR)
pkgclean:
rm -rf $(BUILDDIR) $(PACKDIR)