File: rules

package info (click to toggle)
cppunit 1.14.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,104 kB
  • sloc: cpp: 12,537; sh: 4,240; ansic: 782; makefile: 405; xml: 58
file content (42 lines) | stat: -rwxr-xr-x 1,477 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

%:
	dh $@

override_dh_auto_build-arch:
	dh_auto_configure -- --disable-html-docs --disable-doxygen
	dh_auto_build

override_dh_auto_build-indep:
	dh_auto_configure
	$(MAKE) -C doc

override_dh_auto_test:
	if [ -f ./src/cppunit/.libs/libcppunit.so ]; then dh_auto_test; fi

override_dh_auto_install:
	if [ -f ./src/cppunit/.libs/libcppunit.so ]; then dh_auto_install; fi

override_dh_install-arch:
	# Runtime library package
	dh_install -plibcppunit-1.14-0 --autodest debian/tmp/usr/lib/*/lib*.so.*

	# Developer package
#	dh_install -plibcppunit-dev --autodest debian/tmp/usr/bin/DllPlugInTester

	dh_install -plibcppunit-dev --autodest debian/tmp/usr/lib/*/lib*.so
	dh_install -plibcppunit-dev --autodest debian/tmp/usr/lib/*/lib*.a
	dh_install -plibcppunit-dev --autodest debian/tmp/usr/lib/*/pkgconfig
	dh_install -plibcppunit-dev --autodest debian/tmp/usr/include
	# W: libcppunit-1.14-0: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libcppunit-1.14.so.0.0.0 usr/lib/x86_64-linux-gnu/libcppunit-1.14.so
	dh_link -plibcppunit-dev /usr/lib/$(DEB_HOST_MULTIARCH)/libcppunit.so \
		/usr/lib/$(DEB_HOST_MULTIARCH)/libcppunit-1.14.so

override_dh_install-indep:
	# Documentation package
	$(MAKE) -C examples clean
	dh_installdocs -plibcppunit-doc doc/html
	dh_installexamples -plibcppunit-doc examples/* debian/examples/*
	rm -f debian/libcppunit-doc/usr/share/doc/libcppunit-doc/examples/simple/.gitignore