aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2008-10-23 12:47:35 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-10-23 12:47:35 +0200
commit316632529403a66c38b24ed492e6758189f760e4 (patch)
tree7063bdf2f5455a45e46d309fefd78a7fee1b2146
parent493b8d5afdd8a3f1d4e3760f6cafd1382733029e (diff)
add $(PLUGINDIR)
for direct installtion into /etc/munin/plugins/
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bb250c9..1359236 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
VERSION=0.0.1
PKG=munin-libvirt-plugins
+PLUGINDIR=/usr/share/munin/plugins/
PLUGINS=libvirt-cputime \
libvirt-blkstat \
@@ -10,8 +11,8 @@ ALL=$(PLUGINS) Makefile COPYING
PYFILES=$(patsubst %,%.py,$(PLUGINS))
install: $(PLUGINS)
- install -d $(DESTDIR)/usr/share/munin/plugins/
- install -m 755 $(PLUGINS) $(DESTDIR)/usr/share/munin/plugins
+ install -d $(DESTDIR)$(PLUGINDIR)
+ install -m 755 $(PLUGINS) $(DESTDIR)$(PLUGINDIR)
%.py: %
ln -s $< $@