File: rules

package info (click to toggle)
csvkit 2.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 40,648 kB
  • sloc: python: 4,797; perl: 1,000; makefile: 131; sql: 4
file content (33 lines) | stat: -rwxr-xr-x 980 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
#!/usr/bin/make -f

export PYBUILD_NAME=csvkit
export PYBUILD_BEFORE_TEST=cp -r examples {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/examples

%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	rm -rf csvkit.egg-info
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	$(MAKE) -C docs clean
endif

override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9
override_dh_auto_build:
	dh_auto_build
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
endif

override_dh_auto_test:
	LC_ALL=C.UTF-8 dh_auto_test

override_dh_install:
	dh_install
	dh_movefiles --package=csvkit --sourcedir=debian/python3-csvkit usr/bin/*
	dh_movefiles --package=csvkit --sourcedir=debian/python3-csvkit usr/share/man/*
	find debian/python3-csvkit/usr/share/man -type d -empty -delete
	find debian/python3-csvkit/ -name stdin_out.csv | xargs --no-run-if-empty rm