summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-05-14 21:39:48 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2003-05-14 21:39:48 (GMT)
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 760d8e7..02514aa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,19 +18,17 @@ 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 := $(shell pwd)/build-solaris 21BUILDDIR = build-solaris
22PACKDIR := $(shell pwd)/build-pkg 22PACKDIR = build-pkg
23PKGSCRIPT := $(shell pwd)/pkg/solaris/solpkg 23PKGSCRIPT = pkg/solaris/solpkg
24PKGPFX := $(shell echo ${prefix} |sed -e 's@^/usr/local@@')
25VERSION=@PACKAGE_VERSION@
26 24
27solpkg: 25solpkg:
28 if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi 26 if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi
29 if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi 27 if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
30 $(MAKE) all 28 $(MAKE) all
31 $(MAKE) DESTDIR=$(BUILDDIR) prefix=$(PKGPFX) install 29 $(MAKE) DESTDIR=$$PWD/$(BUILDDIR) install
32 $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR) 30 $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
33 cd $(BUILDDIR) && $(PERL) $(PKGSCRIPT) $(PACKDIR) 31 cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR)
34 32
35pkgclean: 33pkgclean:
36 rm -rf $(BUILDDIR) $(PACKDIR) 34 rm -rf $(BUILDDIR) $(PACKDIR)