File: Makefile

package info (click to toggle)
python-event 0.3%2Bsvn60-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 492 kB
  • ctags: 677
  • sloc: python: 159; makefile: 88
file content (34 lines) | stat: -rw-r--r-- 695 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

PYTHON	= DISTUTILS_USE_SDK=1 MSSdk=1 python2.5
PKGDIR	= pyevent-`egrep version setup.py | cut -f2 -d"'"`
URL	= `egrep url setup.py | cut -f2 -d"'"`

all: event.c
	$(PYTHON) setup.py build

event.c: event.pyx bufferevent.pxi evdns.pxi evhttp.pxi simple.pxi
	pyrexc event.pyx

install:
	$(PYTHON) setup.py install

test:
	$(PYTHON) test.py

doc:
	epydoc -o doc -n event -u http://monkey.org/~dugsong/pyevent/ --docformat=plaintext event

pkg_win32:
	$(PYTHON) setup.py bdist_wininst

pkg_osx:
	bdist_mpkg --readme=README --license=LICENSE
	mv dist $(PKGDIR)
	hdiutil create -srcfolder $(PKGDIR) $(PKGDIR).dmg
	mv $(PKGDIR) dist

clean:
	rm -rf build dist

cleandir distclean: clean
	rm -f *.c *~