File: rules

package info (click to toggle)
elasticsearch-curator 5.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,920 kB
  • sloc: python: 17,468; sh: 464; makefile: 160
file content (25 lines) | stat: -rwxr-xr-x 714 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
#!/usr/bin/make -f

export PYBUILD_NAME=elasticsearch-curator

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. python3 -m sphinx -b html -N docs/ docs/.build/html
	a2x -d book --format text docs/asciidoc/index.asciidoc
	mv docs/asciidoc/index.text docs/asciidoc/reference.txt

override_dh_auto_clean:
	rm -rf docs/.build
	rm -rf build
	find . | grep -E "(__pycache__|\.pyc|\.egg)" | xargs rm -rf

override_dh_auto_install:
	dh_auto_install
	mv debian/python3-elasticsearch-curator/usr/bin debian/elasticsearch-curator/usr
	rm -rf debian/python3-elasticsearch-curator/usr/bin


.PHONY: override_dh_auto_build override_dh_clean override_dh_auto_install