File: rules

package info (click to toggle)
fife 0.4.2-11
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 25,312 kB
  • sloc: cpp: 42,647; xml: 18,881; python: 13,521; makefile: 24
file content (32 lines) | stat: -rwxr-xr-x 703 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
32
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk

MAX  := 2
TYPE := RelWithDebInfo

ifeq (32,$(DEB_HOST_ARCH_BITS))
ifeq (,$(filter $(DEB_HOST_ARCH), i386))
	TYPE := Release
	export DEB_CFLAGS_MAINT_APPEND = -g1
	export DEB_CXXFLAGS_MAINT_APPEND = -g1
	ifneq (,$(filter $(DEB_HOST_ARCH), mipsel))
		export DEB_CXXFLAGS_MAINT_APPEND = -g0
	endif
endif
endif

%:
	dh $@ --max-parallel=$(MAX) --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=$(TYPE) \
		-DCMAKE_CXX_FLAGS_RELEASE="" \
		-DPYTHON_EXECUTABLE="/usr/bin/python3"

override_dh_install:
	dh_install
	find debian/ -name "LICENSE.md" -delete