File: rules

package info (click to toggle)
etlcpp 20.44.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,692 kB
  • sloc: cpp: 302,710; ansic: 11,683; sh: 1,420; asm: 301; python: 281; makefile: 16
file content (30 lines) | stat: -rwxr-xr-x 998 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
#!/usr/bin/make -f
# -*- makefile -*-

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

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

# These reproduce the generated files removed from the sources. debian/copyright
# contains the list of the removed files. The commands to regenerate these are
# in the comment of each removed file in the upstream tree
override_dh_auto_build:
	cd include/etl/generators && sh generate.bat
	dh_auto_build

	$(if $(filter nodoc,$(DEB_BUILD_OPTIONS)),,doxygen Doxyfile)

%:
	dh $@ --buildsystem=cmake

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/tmp/usr/include/etl/.vscode*

override_dh_auto_configure:
	dh_auto_configure -- \
                -DETL_VERSION=$(patsubst %+dfsg,%,$(DEB_VERSION_UPSTREAM)) \
                -DBUILD_TESTS=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) \
                -DETL_ENABLE_SANITIZER=OFF \
                -DCMAKE_CXX_FLAGS="-Wno-aggressive-loop-optimizations -Wno-pessimizing-move" # for gcc-13 compat