File: Makefile

package info (click to toggle)
funkload 1.6.2-6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 844 kB
  • ctags: 733
  • sloc: python: 5,399; makefile: 116; sh: 46; perl: 23
file content (54 lines) | stat: -rw-r--r-- 1,202 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# FunkLoad Makefile
# $Id: $
#
.PHONY: build pkg sdist egg install clean rpm

TARGET := cvs.in.nuxeo.com:~/public_public_html/funkload

# use TAG=a for alpha, b for beta, rc for release candidate
ifdef TAG
	PKGTAG := egg_info --tag-build=$(TAG) --tag-svn-revision
else
    PKGTAG :=
endif


build:
	python setup.py $(PKGTAG) build

test:
	cd funkload/tests && fl-run-test -v test_Install.py

pkg: sdist egg

sdist:
	python setup.py $(PKGTAG) sdist

egg:
	-python2.3 setup.py $(PKGTAG) bdist_egg
	-python2.4 setup.py $(PKGTAG) bdist_egg


distrib:
	-scp dist/funkload-*.tar.gz $(TARGET)/snapshots
	-scp dist/funkload-*.egg $(TARGET)/snapshots

install:
	python setup.py $(PKGTAG) install

register:
	-python2.3 setup.py register sdist bdist_egg upload --sign
	-python2.4 setup.py register bdist_egg upload --sign


uninstall:
	-easy_install -m funkload
	-rm -rf /usr/lib/python2.3/site-packages/funkload*
	-rm -rf /usr/lib/python2.4/site-packages/funkload*
	-rm -rf /usr/local/funkload/
	-rm -f /usr/local/bin/fl-*
	-rm -f /usr/bin/fl-*

clean:
	find . "(" -name "*~" -or  -name ".#*" -or  -name "#*#" -or -name "*.pyc" ")" -print0 | xargs -0 rm -f
	rm -rf ./build ./dist ./MANIFEST ./funkload.egg-info