File: rules

package info (click to toggle)
alot 0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,640 kB
  • sloc: python: 11,150; makefile: 133
file content (32 lines) | stat: -rwxr-xr-x 829 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
30
31
32
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)")

export LC_ALL=C.UTF-8
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/alot/

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

override_dh_auto_build:
	dh_auto_build
	rm -rf $(CURDIR)/docs/build
	$(MAKE) -C docs html man SPHINXOPTS="-D today=\"$(BUILD_DATE)\""

override_dh_auto_test:

override_dh_install:
	dh_install
	mv debian/alot/usr/bin/alot debian/alot/usr/share/alot/alot.bin
	dh_link -palot /usr/share/alot/alot.bin /usr/bin/alot
	# install the NEWS file as a changelog
	mkdir -p debian/alot/usr/share/doc/alot/
	cp NEWS debian/alot/usr/share/doc/alot/changelog

override_dh_compress:
	dh_compress -X.html -X.txt

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docs/build/