File: rules

package info (click to toggle)
glm 0.9.9.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,508 kB
  • sloc: cpp: 34,524; sh: 24; makefile: 20
file content (31 lines) | stat: -rwxr-xr-x 674 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
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_configure:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR="lib" \
		-DGLM_TEST_ENABLE=ON
else
	dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR="lib" \
		-DGLM_TEST_ENABLE=OFF
endif

override_dh_auto_build:
	dh_auto_build
	cd doc; doxygen man.doxy

override_dh_auto_clean:
	dh_auto_clean
	rm -rf doc/html

# NOTE: This override may be removed in the future if upstream decides to use
# the enable_testing() command in CMake. 
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make -C obj-* test
endif