Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Enable hardening build flags
4 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
5
6 # Use custom automake command to prevent autoreconf failure
7 export AUTOMAKE = ./debian/automake.sh
8
9 %:
10 dh $@ --buildsystem autoconf
11
12 override_dh_auto_configure:
13 dh_auto_configure -- \
14 --libdir=/usr/lib/nco \
15 --disable-nco_cplusplus \
16 --disable-static \
17 --enable-dap \
18 --enable-gsl \
19 --enable-ncap2 \
20 --enable-netcdf4 \
21 --enable-udunits2
22
23 execute_after_dh_auto_build:
24 cd doc && $(MAKE) clean && $(MAKE) html
25 cd doc && $(MAKE) nco.info && sed -i 's/xmp\/fgr[0-9].png/\/usr\/share\/doc\/nco\/&/' nco.info*
26
27 override_dh_auto_test:
28 # currently the check phase badly fails
29 dh_auto_test || echo "Ignoring test failures"
30
31 execute_after_dh_auto_install:
32 find $(CURDIR)/debian/nco -name '*.h' -delete
33 find $(CURDIR)/debian/nco -name '*.hh' -delete
34 $(RM) debian/nco/usr/lib/nco/libnco.la
35 $(RM) debian/nco/usr/share/info/dir
36
37 override_dh_makeshlibs:
38 dh_makeshlibs -Xusr/lib/nco