File: rules

package info (click to toggle)
todoman 4.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 584 kB
  • sloc: python: 4,636; makefile: 165; sh: 1
file content (21 lines) | stat: -rwxr-xr-x 682 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

# exports needed to make the tests succeed (python3-click)
# and to build reproducibly
export TZ=UTC
export LANG=C.UTF-8
export LC_ALL=C.UTF-8

# manually build doc:
# todoman binary is manually added to PATH, as it is needed to build the doc
export PYBUILD_AFTER_BUILD=mkdir -p {build_dir}/todoman/bin && cp {dir}/bin/todo {build_dir}/todoman/bin/todoman && make -C docs html text man
# manually remove files needed for tests
export PYBUILD_AFTER_TEST=rm {build_dir}/.coverage

# disable dh_auto_clean as "setup.py clean" tries to download packages from the
# internet
override_dh_auto_clean:
	rm -f $(CURDIR)/debian/hypothesis

%:
	dh $@ --buildsystem=pybuild