File: rules

package info (click to toggle)
lucene%2B%2B 3.0.9-3.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 19,488 kB
  • sloc: cpp: 174,061; ansic: 26,951; python: 8,626; sh: 524; makefile: 32
file content (34 lines) | stat: -rwxr-xr-x 859 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo

override_dh_auto_build-indep:
	dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_DOCS:BOOL=ON
	dh_auto_build
	dh_auto_build -- doc

override_dh_install-indep:
	dh_install -pliblucene++-doc usr/share/doc/lucene++-doc/* usr/share/doc/liblucene++-doc/
	rm -rf debian/tmp/usr/share/doc/lucene++-doc/

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/tmp/usr/lib/*/libg*.a
	rm -rf debian/tmp/usr/lib/*/pkgconfig/g*.pc
	rm -rf debian/tmp/usr/lib/*/cmake/GTest
	rm -rf debian/tmp/usr/include/g*

ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
override_dh_auto_test:
	./obj-*/src/test/lucene++-tester || true
endif

override_dh_missing:
	dh_missing --fail-missing