From 0a074398f3a5884d155683c5ee7f8d1972150c8c Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 21 Oct 2008 21:06:17 +0200 Subject: add Makefile --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3