File: rules

package info (click to toggle)
mini-buildd 1.0.29
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,532 kB
  • ctags: 1,862
  • sloc: sh: 13,009; python: 7,051; makefile: 194; cpp: 70
file content (37 lines) | stat: -rwxr-xr-x 1,168 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

#export DH_VERBOSE = 1

%:
	dh $@ --with=python2,sphinxdoc

override_dh_auto_build:
	dh_auto_build
	python setup.py build_sphinx --source-dir=build/sphinx

	# Create bash completion scripts via python-argcomplete
	mkdir -p ./build/bash-completions/
	register-python-argcomplete mini-buildd      | sed 's/_python_argcomplete/_mini_buildd_argcomplete/g'      >./build/bash-completions/mini-buildd
	register-python-argcomplete mini-buildd-tool | sed 's/_python_argcomplete/_mini_buildd_tool_argcomplete/g' >./build/bash-completions/mini-buildd-tool

	# Code to enable latex+pdf manual: Deps: texlive-latex-extra texlive-fonts-recommended
	#sphinx-build -b latex ./build/sphinx ./build/sphinx/latex
	#make --directory ./build/sphinx/latex

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	dh_auto_test
	./devel pydoctests
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build/ src/*.egg-info/

override_dh_fixperms:
	dh_fixperms
	chmod 440 debian/mini-buildd/etc/sudoers.d/mini-buildd-sudoers

# Don't compress anything in examples, so scripts and packages can be used as-is.
override_dh_compress:
	dh_compress -X examples/