File: rules

package info (click to toggle)
ansible 2.7.7+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 83,324 kB
  • sloc: python: 814,656; xml: 12,561; sh: 1,656; makefile: 978; cs: 97; tcl: 21
file content (28 lines) | stat: -rwxr-xr-x 593 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
#!/usr/bin/make -f

export PYBUILD_NAME=ansible
export ANSIBLE_LOCAL_TEMP=debian/.ansible/tmp

DOPACKAGES = $(shell dh_listpackages)

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

override_dh_clean:
	dh_clean --exclude=test/units/inventory_test_data/group_vars/noparse/all.yml~

override_dh_auto_build:
	dh_auto_build
ifneq (,$(filter ansible-doc,$(DOPACKAGES)))
	# html documentation
	$(MAKE) webdocs
	# manpage documentation
	$(MAKE) docs
endif

override_dh_auto_test:
	# For now, disable the tests
	#make tests-nonet

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3