From 9795b7728134d4d939c0f364f37ac1a378de434c Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Tue, 29 Sep 2009 13:51:35 -0300 Subject: updated Makefile --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index de497c3..35bdc7b 100644 --- a/Makefile +++ b/Makefile @@ -2,17 +2,19 @@ PACKAGE = net_monitor VERSION = 0.01 GITPATH = ssh://git.mandriva.com/git/projects/net_monitor.git -all: version +all: version python version: echo "version='$(VERSION)'" > version.py +python: + python setup.py build + clean: -find . -name '*.o' -o -name '*.py[oc]' -o -name '*~' | xargs rm -f install: all - mkdir -p $(RPM_BUILD_ROOT)/usr/bin/ - install -m755 net_monitor.py $(RPM_BUILD_ROOT)/usr/bin/net_monitor + python setup.py install --root=$(RPM_BUILD_ROOT) cleandist: rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2 -- cgit v1.2.1