| 1 |
|
| 2 |
include /usr/share/dpkg/pkg-info.mk |
| 3 |
|
| 4 |
BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)") |
| 5 |
|
| 6 |
export DEB_VERSION_UPSTREAM |
| 7 |
|
| 8 |
export LC_ALL=C.UTF-8 |
| 9 |
export PYBUILD_INSTALL_DIR=/usr/share/alot/ |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --buildsystem=pybuild |
| 13 |
|
| 14 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 15 |
execute_after_dh_auto_build: |
| 16 |
rm -rf $(CURDIR)/docs/build |
| 17 |
$(MAKE) -C docs html man SPHINXOPTS="-D today=\"$(BUILD_DATE)\"" |
| 18 |
endif |
| 19 |
|
| 20 |
override_dh_installchangelogs: |
| 21 |
dh_installchangelogs NEWS |