File: rules

package info (click to toggle)
fuzzylite 6.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,276 kB
  • sloc: cpp: 25,881; java: 1,370; sh: 85; makefile: 14; xml: 12
file content (26 lines) | stat: -rwxr-xr-x 888 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

# for DEB_HOST_GNU_TYPE and DEB_HOST_MULTIARCH
include /usr/share/dpkg/architecture.mk

# we build in a subdirectory of ./fuzzylite because the unit tests expect the
# ./examples directory to be two levels above, see
# https://github.com/fuzzylite/fuzzylite/issues/85
%:
	dh $@ --sourcedirectory=fuzzylite --builddirectory=fuzzylite/obj-$(DEB_HOST_GNU_TYPE)

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) -DCMAKE_VERBOSE_MAKEFILE=true -DFL_CPP11=ON

override_dh_install:
	dh_install --fail-missing

override_dh_auto_test:
	dh_auto_test

get-orig-source:
	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --repack --compression=xz --download-current-version