diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |