File: rules

package info (click to toggle)
jthread 1.3.1-3.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 152 kB
  • sloc: cpp: 444; makefile: 24
file content (30 lines) | stat: -rwxr-xr-x 988 bytes parent folder | download | duplicates (2)
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 $@