File: rules

package info (click to toggle)
wslay 1.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 660 kB
  • sloc: ansic: 3,381; cpp: 1,030; makefile: 204; sh: 20
file content (22 lines) | stat: -rwxr-xr-x 558 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk

ifneq (linux,$(DEB_HOST_ARCH_OS))
  CMAKE_ARGS += -DWSLAY_EXAMPLES=OFF
endif

%:
	dh $@ --buildsystem=cmake --without autoreconf $(DHADDONS)
build binary %-indep: DHADDONS+=--with sphinxdoc

override_dh_auto_configure:
	dh_auto_configure --buildsystem=cmake -- $(CMAKE_ARGS)

override_dh_auto_build-indep:
	dh_auto_build -A
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
	cd doc/sphinx/ ; cp conf.py.in conf.py; $(MAKE) man ; $(MAKE) html
endif