[go: up one dir, main page]

File: rules

package info (click to toggle)
flit 3.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,504 kB
  • sloc: python: 6,691; makefile: 175; sh: 27
file content (43 lines) | stat: -rwxr-xr-x 1,312 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
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export FLIT_NO_NETWORK=True
export FLIT_ROOT_INSTALL=1
include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_clean:
	set -e; \
	if [ -e _removed ]; then \
		mv _removed/vendor flit_core/flit_core/; \
		rmdir _removed; \
	fi
	dh_auto_clean --name flit
	dh_auto_clean -d flit_core --name flit_core

override_dh_auto_configure:
	set -e; \
	if [ -e flit_core/flit_core/vendor ]; then \
		mkdir -p _removed; \
		mv flit_core/flit_core/vendor _removed/; \
	fi
	pybuild --configure --name flit
	pybuild --configure -d flit_core --name flit_core

override_dh_auto_build:
	pybuild --build --name flit
	pybuild --build -d flit_core --name flit_core

override_dh_auto_install:
	pybuild --install --dest-dir debian/flit --name flit
	pybuild --install --dest-dir debian/flit -d flit_core --name flit_core
	sphinx-build -W -b man -D extensions='sphinx.ext.ifconfig,sphinxcontrib_github_alt' -D man_show_urls=1 doc/ debian/

override_dh_auto_test:
	pybuild --test -d flit_core --name flit_core --test-pytest \
		--before-test="cp -R {dir}/../README.rst {dir}/../LICENSE {dir}/tests_core {build_dir}" \
		--after-test="rm -rf {build_dir}/README.rst {build_dir}/LICENSE {build_dir}/tests_core"