File: rules

package info (click to toggle)
libevhtp 1.2.18-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 996 kB
  • sloc: ansic: 10,208; sh: 118; makefile: 19
file content (29 lines) | stat: -rwxr-xr-x 758 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
# -*- makefile -*-

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DEVHTP_BUILD_SHARED:STRING=ON -DBUILD_SHARED_LIBS:STRING=ON 

override_dh_auto_build:
	dh_auto_build
	mkdir -p html
	doxygen

override_dh_auto_install:
	dh_auto_install
	# CMake does not support to specify the directory where to put multiarch stuff
	mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
	mv debian/tmp/usr/lib/lib* debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
	mv debian/tmp/usr/lib/pkgconfig debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_strip:
	dh_strip --dbgsym-migration='libevhtp0-dbg (<< 1.2.11-3~)'

override_dh_auto_clean:
	dh_auto_clean
	rm -rf html