aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: b6dee4ac8e4c77985c1b72196b1817f3fba75f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PACKAGE = net_monitor
VERSION = 0.02
GITPATH = ssh://git.mandriva.com/git/projects/net_monitor.git

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
	python setup.py install --root=$(RPM_BUILD_ROOT)

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