aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files 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