Source

pyevent / Makefile

# $Id$

PYTHON ?= python
#PYTHON	= DISTUTILS_USE_SDK=1 MSSdk=1 python2.5
#CONFIG_ARGS = --with-libevent=$(HOME)/build/libevent-1.4.4

PYREXC ?= cython

PKGDIR	= pyevent-`egrep version setup.py | cut -f2 -d"'"`

all: event.c
	$(PYTHON) setup.py config $(CONFIG_ARGS)
	$(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:
	$(PYTHON) setup.py clean
	rm -rf build dist

cleandir distclean: clean
	$(PYTHON) setup.py clean -a
	rm -f *.c *~
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.