aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.com>2009-09-29 13:51:35 -0300
committerEugeni Dodonov <eugeni@mandriva.com>2009-09-29 13:51:35 -0300
commit9795b7728134d4d939c0f364f37ac1a378de434c (patch)
tree210a26f310937032ade8db2823506b87a0927dd8
parent4a0fe20560e5a414af7329354efcd5b76007a240 (diff)
downloadnet_monitor-9795b7728134d4d939c0f364f37ac1a378de434c.tar
net_monitor-9795b7728134d4d939c0f364f37ac1a378de434c.tar.gz
net_monitor-9795b7728134d4d939c0f364f37ac1a378de434c.tar.bz2
net_monitor-9795b7728134d4d939c0f364f37ac1a378de434c.tar.xz
net_monitor-9795b7728134d4d939c0f364f37ac1a378de434c.zip
updated Makefile
-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