File: rules

package info (click to toggle)
lasi 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,420 kB
  • ctags: 1,269
  • sloc: cpp: 1,049; makefile: 13
file content (24 lines) | stat: -rwxr-xr-x 715 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
# include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_DH_INSTALL_SOURCEDIR := $(CURDIR)/debian/tmp
DEB_COMPRESS_EXCLUDE := .cpp
# The test target runs ctest to check the examples work correctly. In order for this to 
# work we need to enable linking with rpath in the build tree.
DEB_MAKE_CHECK_TARGET := test
DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_SKIP_RPATH=OFF -DUSE_RPATH=OFF

devdir := $(CURDIR)/debian/liblasi-dev
docdir := $(devdir)/usr/share/doc/liblasi-dev

binary-pre-install/liblasi0::
	ctest

binary-post-install/liblasi-dev::
	mv $(docdir)/doc/developer/html $(docdir)/html
	rm -rf $(docdir)/doc