Debian Codegraph @

Makefile

raw symbols SCIP
1 # Makefile not needed to build module. Use "python3 setup.py install" instead.
2 #
3 # This Makefile generates the SWIG wrappers and the documentation.
4
5 CLEAN=build SubnetTree_wrap.cc SubnetTree.py README.html *.pyc
6
7 VERSION=`test -e VERSION && cat VERSION || cat ../VERSION`
8 BUILD=build
9 TGZ=pysubnettree-$(VERSION)
10
11 all: SubnetTree_wrap.cc
12
13 SubnetTree_wrap.cc SubnetTree.py: SubnetTree.i include/SubnetTree.h
14 swig -c++ -python -Iinclude -o SubnetTree_wrap.cc SubnetTree.i
15
16 clean:
17 rm -rf $(CLEAN)
18
19 .PHONY: dist
20 dist:
21 @python3 setup.py sdist
22 @printf "Package: "; echo dist/*.tar.gz
23
24 distclean:
25 rm -rf pysubnettree.egg-info
26 rm -rf dist
27 rm -rf build
28
29 .PHONY: upload
30 upload: twine-check dist
31 twine upload -u zeek dist/pysubnettree-$(VERSION).tar.gz
32
33 .PHONY: twine-check
34 twine-check:
35 @type twine > /dev/null 2>&1 || \
36 { \
37 echo "Uploading to PyPi requires 'twine' and it's not found in PATH."; \
38 echo "Install it and/or make sure it is in PATH."; \
39 echo "E.g. you could use the following command to install it:"; \
40 echo "\tpip3 install twine"; \
41 echo ; \
42 exit 1; \
43 }
44
45 .PHONY : test
46 test:
47 @make -C testing