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
|
#!/usr/bin/make -f
version=$(shell dpkg-parsechangelog|grep "^Version:"|cut -d" " -f2|cut -d- -f1)
multiarch=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
override_dh_auto_clean:
dh_auto_clean
rm -f \
debian/libjthread${version}.install \
debian/libjthread${version}.symbols \
debian/libjthread-dev.install \
debian/libjthread-dev.links \
manual.*
override_dh_strip:
dh_strip --dbg-package=libjthread-dbg
override_dh_auto_install:
pdflatex doc/manual.tex
cp debian/libjthread.symbols debian/libjthread${version}.symbols
echo "usr/lib/lib*.so.* usr/lib/${multiarch}" > debian/libjthread${version}.install
echo "usr/lib/${multiarch}/libjthread.so.${version} usr/lib/${multiarch}/libjthread.so" \
> debian/libjthread-dev.links
echo "usr/include/*" > debian/libjthread-dev.install
echo "usr/lib/pkgconfig/*" >> debian/libjthread-dev.install
echo "usr/lib/lib*.a usr/lib/${multiarch}" >> debian/libjthread-dev.install
dh_auto_install
%:
dh $@
|