aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.com>2009-09-24 20:12:13 -0300
committerEugeni Dodonov <eugeni@mandriva.com>2009-09-24 20:12:13 -0300
commite923cfbc87bd91e8600a01ae02cfb5a3cc5696b1 (patch)
tree9e4f2b9e78dd8eda47bea1d5f49ee37b14824b95 /Makefile
parent4d5ceb90e5fd3ff1fecb5365ab522811bfeaf85f (diff)
downloadnet_monitor-e923cfbc87bd91e8600a01ae02cfb5a3cc5696b1.tar
net_monitor-e923cfbc87bd91e8600a01ae02cfb5a3cc5696b1.tar.gz
net_monitor-e923cfbc87bd91e8600a01ae02cfb5a3cc5696b1.tar.bz2
net_monitor-e923cfbc87bd91e8600a01ae02cfb5a3cc5696b1.tar.xz
net_monitor-e923cfbc87bd91e8600a01ae02cfb5a3cc5696b1.zip
Added basic files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..de497c3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+PACKAGE = net_monitor
+VERSION = 0.01
+GITPATH = ssh://git.mandriva.com/git/projects/net_monitor.git
+
+all: version
+
+version:
+ echo "version='$(VERSION)'" > version.py
+
+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
+
+cleandist:
+ rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2
+
+dist: gitdist
+
+gitdist: cleandist
+ git archive --prefix $(PACKAGE)-$(VERSION)/ HEAD | bzip2 -9 > $(PACKAGE)-$(VERSION).tar.bz2