File: rules

package info (click to toggle)
googletest 1.12.1-0.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 4,620 kB
  • sloc: cpp: 52,103; python: 3,685; sh: 122; makefile: 18
file content (27 lines) | stat: -rwxr-xr-x 623 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
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_CXXFLAGS_MAINT_APPEND = -fPIC

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --buildsystem=cmake -- -Dgmock_build_tests=ON -Dgtest_build_tests=ON

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd obj-* && ctest || (cat Testing/Temporary/LastTest.log; exit 1)
endif

override_dh_prep:
	dh_prep
	find googletest -iname __pycache__ -type d | xargs rm -rf

override_dh_install-indep:
	dh_install
	find debian -iname '*.py' -print0 | xargs -0 chmod -x

override_dh_clean:
	dh_clean
	find googletest -iname __pycache__ -type d | xargs rm -rf