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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
#!/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 ca de es fr it ja ko lt pt ro ru
LANGPO := ca de es fr it ja ko lt pt ro 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
|