forked from zeek/pysubnettree
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
37 lines (27 loc) · 888 Bytes
/
Makefile
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
# Makefile not needed to build module. Use "python setup.py install" instead.
#
# This Makefile generates the SWIG wrappers and the documentation.
DISTFILES=COPYING Makefile README SubnetTree.cc SubnetTree.h \
SubnetTree.i SubnetTree.py SubnetTree_wrap.cc patricia.c patricia.h setup.py test.py
CLEAN=build SubnetTree_wrap.cc SubnetTree.py README.html *.pyc
VERSION=`test -e VERSION && cat VERSION || cat ../VERSION`
BUILD=build
TGZ=pysubnettree-$(VERSION)
all: SubnetTree_wrap.cpp
SubnetTree_wrap.cpp SubnetTree.py: SubnetTree.i SubnetTree.h
swig -c++ -python -o SubnetTree_wrap.cc SubnetTree.i
clean:
rm -rf $(CLEAN)
.PHONY: dist
dist:
@python setup.py sdist
@printf "Package: "; echo dist/*.tar.gz
distclean:
rm -rf pysubnettree.egg-info
rm -rf dist
rm -rf build
upload:
python setup.py sdist upload --sign --identity F8CB8019
.PHONY : test
test:
@make -C testing