| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS=optimize=+lto |
| 4 |
|
| 5 |
include /usr/share/octave/debian/defs.make |
| 6 |
|
| 7 |
# The following is used by dh_elpa(1) for determining the package version number |
| 8 |
include /usr/share/dpkg/pkg-info.mk |
| 9 |
export DEB_VERSION_UPSTREAM |
| 10 |
|
| 11 |
# Needed for texlive to respect SOURCE_DATE_EPOCH when setting date (#974957) |
| 12 |
export FORCE_SOURCE_DATE=1 |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ --with sphinxdoc,elpa |
| 16 |
|
| 17 |
override_dh_auto_configure: |
| 18 |
dh_auto_configure -- -Dbuild_for=octave -Dmathjax_path=/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML |
| 19 |
|
| 20 |
override_dh_auto_build: |
| 21 |
# Also build PDF and HTML docs (unless nodoc is given) |
| 22 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 23 |
dh_auto_build -- all doc |
| 24 |
rm -rf doc/manual/utils/__pycache__/ # This must not end up in dynare-matlab |
| 25 |
else |
| 26 |
dh_auto_build |
| 27 |
endif |
| 28 |
|
| 29 |
# Don't run the testsuite |
| 30 |
override_dh_auto_test: |
| 31 |
|
| 32 |
override_dh_link: |
| 33 |
dh_link --package=dynare /usr/lib/dynare/matlab/dynare.m $(MDIR)/dynare.m |
| 34 |
|
| 35 |
# See #1114630 |
| 36 |
override_dh_shlibdeps: |
| 37 |
dh_shlibdeps -l$(shell octave-config -p OCTLIBDIR) |
| 38 |
|
| 39 |
# Generate a versioned dependency on octave, and a dependency on the virtual octave-abi-NN |
| 40 |
execute_before_dh_gencontrol: |
| 41 |
dh_octave_substvar |