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
|
#!/usr/bin/make -f
export PTHREAD_CFLAGS=-lpthread
%:
dh $@ --parallel --with autoreconf
override_dh_auto_configure:
dh_auto_configure -- --program-prefix=ctemplate-
override_dh_auto_test:
# the tests don't run fine together in parallel or in different order,
# so run them sequentially
dh_auto_test --max-parallel=1
# remove temporary directories not cleaned up automatically
rm -rf \
/tmp/diff_tpl_auto_escape_unittest_sh_dir \
/tmp/make_tpl_varnames_h_unittest_sh_dir \
/tmp/template_unittest_dir
override_dh_auto_install:
dh_auto_install
# kill libtool .la files
find debian/tmp -name '*.la' -print -delete
# remove documentation installed by upstream, which is either
# not useful at all or installed with other tools
rm -fv \
debian/tmp/usr/share/doc/ctemplate-*/AUTHORS \
debian/tmp/usr/share/doc/ctemplate-*/ChangeLog \
debian/tmp/usr/share/doc/ctemplate-*/COPYING \
debian/tmp/usr/share/doc/ctemplate-*/INSTALL \
debian/tmp/usr/share/doc/ctemplate-*/NEWS \
debian/tmp/usr/share/doc/ctemplate-*/README \
debian/tmp/usr/share/doc/ctemplate-*/README_windows.txt
override_dh_install:
dh_install --list-missing
override_dh_makeshlibs:
dh_makeshlibs -V
|