#!/usr/bin/make -f
## ----------------------------------------------------------------------
## debian/rules : package script for debian-history
## ----------------------------------------------------------------------
include /usr/share/dpkg/pkg-info.mk
# version of this Debian package (debian/changelog)
PUBVERSION := $(DEB_VERSION)
# short date of this Debian package (debian/changelog)
PUBDATE := $(shell { date +'%Y-%m-%d' --utc -d"@$(SOURCE_DATE_EPOCH)" ; })
export PUBVERSION
export PUBDATE
# Needed for texlive to respect SOURCE_DATE_EPOCH when setting date
export FORCE_SOURCE_DATE=1
## ----------------------------------------------------------------------
## uncomment this to turn on verbose mode
#export DH_VERBOSE=1
## no-parallel to build with the cleaner log (it slows!)
#BUILDOPT:= --parallel
BUILDOPT:= --no-parallel
## ----------------------------------------------------------------------
# Package building language choice
# (This should be updated with the maintainer approval)
#
MANUAL := debian-history
LANGALL := en de fr it ja ko lt pt ru
LANGPO := de fr it ja ko lt pt ru
# languages to skip generation of PDF files (not used now)
#NOPDF := ja
NOPDF :=
## ----------------------------------------------------------------------
## Targets
%:
dh $@
override_dh_auto_build:
dh_auto_build $(BUILDOPT) -- \
"LANGALL=$(LANGALL)" \
"LANGPO=$(LANGPO)" \
"NOPDF=$(NOPDF)" \
all
override_dh_compress:
dh_compress -X.pdf
override_dh_auto_test:
: # no need to test build html pages
override_dh_auto_clean:
$(MAKE) "LANGALL=$(LANGALL)" "LANGPO=$(LANGPO)" clean