File: rules

package info (click to toggle)
mia 2.4.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 15,244 kB
  • sloc: cpp: 158,736; python: 1,261; sh: 315; xml: 127; makefile: 30; csh: 24; ansic: 9
file content (56 lines) | stat: -rwxr-xr-x 1,284 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/make -f
# -*- makefile -*-

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -fvisibility=hidden

# reduce debug info to fix FTBFS on archs with low address space
ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
  export DEB_CFLAGS_MAINT_APPEND = -g1
  export DEB_CXXFLAGS_MAINT_APPEND = -g1
endif

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


# deduce documentation option (build-indep target)
ifeq "" "$(filter %-doc,$(shell dh_listpackages))"
  BUILDDOC = OFF
else
  BUILDDOC = ON
endif


.PHONY: override_dh_strip override_dh_shlibdeps override_dh_auto_test

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	-DALWAYS_CREATE_DOC=$(BUILDDOC)  \
	-DSTRICT_DEPENDECIES=ON \
	-DMIA_CREATE_MANPAGES=ON \
	-DMIA_CREATE_USERDOC=$(BUILDDOC) \
	-DMIA_CREATE_NIPYPE_INTERFACES=ON

# dh_strip detects executable files, so make *.mia files executable then strip then 
# remove the executable flag 
override_dh_strip:
	`pwd`/debian/run_strip

override_dh_auto_build-indep: 
	dh_auto_build -- doc

override_dh_auto_build-arch: 
	dh_auto_build

override_dh_shlibdeps:
	dh_shlibdeps -- $(shell find  debian/libmia-2.4-4/ -name "*.mia")