File: rules

package info (click to toggle)
alot 0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,716 kB
  • sloc: python: 11,261; makefile: 125; sh: 8
file content (21 lines) | stat: -rwxr-xr-x 544 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
#!/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 DEB_VERSION_UPSTREAM  # used by patched docs/source/conf.py

export LC_ALL=C.UTF-8
export PYBUILD_INSTALL_DIR=/usr/share/alot/

%:
	dh $@ --buildsystem=pybuild

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_build:
	rm -rf $(CURDIR)/docs/build
	$(MAKE) -C docs html man SPHINXOPTS="-D today=\"$(BUILD_DATE)\""
endif # nodoc

override_dh_installchangelogs:
	dh_installchangelogs NEWS