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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# General (every file):
%:
dh $@
# Add configure time options.
override_dh_auto_configure:
dh_auto_configure -- --disable-rpath
override_dh_dwz:
: Skipping dwz, compression not beneficial on gnuastro libraries.
override_dh_auto_install:
dh_auto_install
# Remove .la files
find debian/tmp -name "*.la" -delete
# Remove libgnuastro_make.a
find debian/tmp -name "libgnuastro_make.a" -delete
# Clean files.
override_dh_auto_clean:
dh_auto_clean
rm -rf debian/build
# Fix 'build twice'. TODO - Check upstream cleaning.
rm -rf tests/programs-built/
# Extra files necessary for installation.
override_dh_installinfo:
dh_installinfo
mkdir -p debian/gnuastro/usr/share/info/gnuastro-figures
cp doc/gnuastro-figures/*.png \
debian/gnuastro/usr/share/info/gnuastro-figures
|