File: Makefile

package info (click to toggle)
python-dpkt 1.6%2Bsvn54-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 448 kB
  • ctags: 1,950
  • sloc: python: 5,136; makefile: 71
file content (33 lines) | stat: -rw-r--r-- 769 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
# $Id: Makefile 345 2006-02-01 15:47:16Z dugsong $

PYTHON	= python
#BDIST_MPKG= bdist_mpkg
BDIST_MPKG= /Library/Frameworks/Python.framework/Versions/2.5/bin/bdist_mpkg
PKGDIR  = dpkt-`egrep version dpkt/__init__.py | cut -f2 -d"'"`
URL	= `egrep url dpkt/__init__.py | cut -f2 -d"'"`

all:
	$(PYTHON) setup.py build

install:
	$(PYTHON) setup.py install

test:
	$(PYTHON) test.py

doc:
	epydoc -o doc -n dpkt -u $(URL) --docformat=plaintext ./dpkt/

pkg_win32:
	$(PYTHON) setup.py bdist_wininst

pkg_osx:
	$(BDIST_MPKG) --readme=README --license=LICENSE
	PKGNAME=`basename dist/*.mpkg | sed s/\.mpkg//` ; \
	hdiutil create -srcfolder dist -volname $${PKGNAME} $${PKGNAME}.dmg

clean:
	rm -rf build dist doc *.dmg

cleandir distclean: clean
	rm -f *.pyc *~ */*.pyc */*~