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
|
#!/usr/bin/make -f
export PTHREAD_CFLAGS=-lpthread
%:
dh $@
execute_after_dh_clean:
# python caches of python scripts run during build
find . -depth -name __pycache__ -type d -exec rm -rfv {} \;
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
execute_after_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/NEWS \
debian/tmp/usr/share/doc/ctemplate/README
|