| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
## cf #1108104 and cross-build ability |
| 4 |
DPKG_EXPORT_BUILDTOOLS := 1 |
| 5 |
include /usr/share/dpkg/buildtools.mk |
| 6 |
|
| 7 |
## cf https://wiki.debian.org/ReproducibleBuilds/TimestampsInPDFGeneratedByLaTeX |
| 8 |
DEB_DATE_RFC_2822 := $(shell dpkg-parsechangelog -S date) |
| 9 |
DEB_DATE_RFC_3339 := $(shell date -u "--rfc-3339=seconds" -d "$(DEB_DATE_RFC_2822)") |
| 10 |
|
| 11 |
override_dh_auto_configure: |
| 12 |
dh_auto_configure -- --without-included-ltdl |
| 13 |
|
| 14 |
override_dh_auto_build: |
| 15 |
make |
| 16 |
## cf https://wiki.debian.org/ReproducibleBuilds/TimestampsInPDFGeneratedByLaTeX |
| 17 |
## and override current time with time in changelog for indentical pdf docs |
| 18 |
## also see #https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778462 for the chmod |
| 19 |
#(cd doc/manual && faketime -f "$(DEB_DATE_RFC_3339)" make docs && ls) |
| 20 |
(cd doc/manual && make docs) |
| 21 |
|
| 22 |
override_dh_auto_install: |
| 23 |
dh_auto_install |
| 24 |
# |
| 25 |
# edd 08 May 2011 |
| 26 |
# empty dependency_lib in .la files (cf #621213) |
| 27 |
find debian/$(package) -name \*.la | \ |
| 28 |
xargs perl -p -i -e "s/dependency_libs='.*'/dependency_libs=''/" |
| 29 |
|
| 30 |
%: |
| 31 |
dh $@ --with autoreconf |
| 32 |
|