File: rules

package info (click to toggle)
antlr4-cpp-runtime 4.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,988 kB
  • sloc: cpp: 15,909; sh: 31; makefile: 20
file content (28 lines) | stat: -rwxr-xr-x 938 bytes parent folder | download
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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_VERSION_UPSTREAM_ORIG = $(shell echo $(DEB_VERSION_UPSTREAM) | cut -d + -f 1)

%:
	dh $@

override_dh_auto_configure:
	# Turning off for now as drop-in replacement with system-provided googletest does not work.
	dh_auto_configure -- -DANTLR_BUILD_CPP_TESTS=OFF -DANTLR4_INSTALL=ON

override_dh_install:
	dh_install
	dh_install -plibantlr4-runtime$(DEB_VERSION_UPSTREAM_ORIG) \
		'usr/lib/$(DEB_HOST_MULTIARCH)/*.so.*' usr/lib/$(DEB_HOST_MULTIARCH)
	dh_install -plibantlr4-runtime-dev \
		'usr/lib/$(DEB_HOST_MULTIARCH)/cmake' usr/lib/$(DEB_HOST_MULTIARCH)
	dh_install -plibantlr4-runtime-dev \
		'usr/lib/$(DEB_HOST_MULTIARCH)/*.so' usr/lib/$(DEB_HOST_MULTIARCH)
	dh_install -plibantlr4-runtime-dev \
		'usr/lib/$(DEB_HOST_MULTIARCH)/*.a' usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_clean:
	dh_auto_clean
	rm -rf dist