9
9
# Uncomment this to turn on verbose mode.
10
10
#export DH_VERBOSE=1
12
include /usr/share/dpatch/dpatch.make
17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
23
configure: configure-stamp
26
# Add here commands to configure the package.
28
chmod +x networkx/tests/test.py
34
build: patch build-stamp
36
build-stamp: configure-stamp
39
# Add here commands to compile the package.
12
PYSUPPORT_DIR=debian/python-networkx/usr/share/python-support/python-networkx
14
include /usr/share/quilt/quilt.make
44
18
clean: clean-patched unpatch
49
rm -f build-stamp configure-stamp
51
24
# Add here commands to clean up after the build process.
27
# Make sure that there's no .pyc left
28
find . -name '*.pyc' -exec rm {} ';'
30
# This directory is generated during the build
31
rm -rf networkx.egg-info
62
# Add here commands to install the package into debian/python-networkx.
63
#$(MAKE) install DESTDIR=$(CURDIR)/debian/python-networkx
64
python setup.py install --root=$(CURDIR)/debian/python-networkx
66
# Remove all *.pyc files, created in the postinst
67
find $(CURDIR)/debian/python-networkx -name "*.pyc" -exec rm {} ';'
69
# Install a lintian override about a missing +x, due to dh_pysupport
70
install -d $(CURDIR)/debian/python-networkx/usr/share/lintian/overrides
71
cp $(CURDIR)/debian/python-networkx.lintian-overrides \
72
$(CURDIR)/debian/python-networkx/usr/share/lintian/overrides/python-networkx
41
# Install w/o compiling *.pyc files
42
# Install egg-info directories (--single-... option)
43
python setup_egg.py install --no-compile --root=$(CURDIR)/debian/python-networkx \
44
--single-version-externally-managed
46
# Do some cleanup: delete unneeded files
47
for i in Credits.txt Download.txt GNU_LGPL.txt Install.txt Legal.txt; do \
48
rm $(CURDIR)/debian/python-networkx/usr/share/doc/python-networkx/$$i ; \
52
rmdir $(CURDIR)/debian/python-networkx/usr/share/doc/python-networkx/data
54
# Rename Readme.txt to README
55
mv $(CURDIR)/debian/python-networkx/usr/share/doc/python-networkx/Readme.txt \
56
$(CURDIR)/debian/python-networkx/usr/share/doc/python-networkx/README
75
59
# Build architecture-independent files here.
76
60
binary-indep: build install
77
# We have nothing to do by default.
79
# Build architecture-dependent files here.
80
binary-arch: build install
67
chmod +x ${PYSUPPORT_DIR}/networkx/tests/test.py
76
# Build architecture-dependent files here.
77
binary-arch: build install
78
# We have nothing to do by default.
99
80
binary: binary-indep binary-arch
100
.PHONY: build clean binary-indep binary-arch binary install configure
81
.PHONY: build clean binary-indep binary-arch binary install