File: rules

package info (click to toggle)
xonsh 0.8.10+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,240 kB
  • sloc: python: 36,019; makefile: 152; sh: 40
file content (29 lines) | stat: -rwxr-xr-x 908 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
22
23
24
25
26
27
28
29
#! /usr/bin/make -f

export LC_ALL=C.UTF-8

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

override_dh_installchangelogs:
	dh_installchangelogs -k CHANGELOG.rst

override_dh_auto_clean:
	dh_auto_clean
	rm -f xonsh/lexer_table.py xonsh/parser_table.py
	find . -name '*.pyc' -delete

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs/ debian/xonsh-doc/usr/share/doc/xonsh-doc/html
	dh_sphinxdoc -O--buildsystem=pybuild
endif

override_dh_auto_install:
	dh_auto_install
	PYTHONPATH=. help2man --name "Pythonish, BASHwards looking shell" \
	         --no-info --include debian/xonsh.help2man -o debian/xonsh.1 \
	         ./debian/tmp/usr/bin/xonsh
	mkdir -p debian/tmp/usr/share/xonsh/
	mv debian/tmp/usr/bin/xon.sh debian/tmp/usr/share/xonsh/
	mv debian/tmp/usr/bin/xonsh-cat debian/tmp/usr/share/xonsh/