aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido G√ľnther <agx@sigxcpu.org>2008-10-21 21:06:17 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-10-21 22:19:54 +0200
commit0a074398f3a5884d155683c5ee7f8d1972150c8c (patch)
treeac30b5c5b4f6e383d2ed62f22f72321552fa4c59
parente5e8adb58e1ee881b5ff5ce56f664248e025fd5b (diff)
add Makefile0.0.1
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1d1f27a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+VERSION=0.0.1
+PKG=munin-libvirt-plugins
+
+PLUGINS=libvirt-cputime \
+ libvirt-blkstat \
+ libvirt-ifstat
+
+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
+
+%.py: %
+ ln -s $< $@
+ pychecker -q -e Error $@
+
+check: $(PYFILES)
+
+clean:
+ rm -f *.py *.pyc
+
+dist:
+ git-archive --format=tar --prefix=$(PKG)-$(VERSION)/ HEAD | gzip -c > ../$(PKG)-$(VERSION).tar.gz