File: rules

package info (click to toggle)
developers-reference 12.18
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,172 kB
  • sloc: makefile: 177; javascript: 74; python: 74; sh: 68; perl: 25
file content (22 lines) | stat: -rwxr-xr-x 527 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
#!/usr/bin/make -f

LANGS		:= en $(shell dh_listpackages| sed -n -e 's/developers-reference-//p')

%:
	dh $@ --with sphinxdoc

override_dh_auto_build:
	$(MAKE) LANGS="$(LANGS)"

override_dh_compress:
	dh_compress -X.pdf -X.epub

override_dh_installdeb:
	debian/tocsubstvars
	dh_installdeb

override_dh_sphinxdoc:
	dh_sphinxdoc -pdevelopers-reference usr/share/developers-reference
	set -ex; for lang in $(filter-out en,$(LANGS)); do \
		dh_sphinxdoc -pdevelopers-reference-$$lang usr/share/developers-reference/$$lang; \
	done