File: rules

package info (click to toggle)
fife 0.4.2-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,204 kB
  • sloc: cpp: 42,642; xml: 18,881; python: 13,521; makefile: 23
file content (30 lines) | stat: -rwxr-xr-x 654 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
23
24
25
26
27
28
29
30
#!/usr/bin/make -f

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