File: rules

package info (click to toggle)
fosfat 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 560 kB
  • sloc: ansic: 3,052; sh: 837; makefile: 549
file content (34 lines) | stat: -rwxr-xr-x 716 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
#!/usr/bin/make -f

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifeq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
	crossopts =
else
	crossopts = --cross-compile --cross-prefix=$(DEB_HOST_GNU_TYPE)-
endif

%:
	dh $@

override_dh_auto_configure:
	./configure --prefix=/usr \
	            --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
	            --enable-static \
	            --enable-shared \
	            --enable-fosmount \
	            --disable-strip \
	            --enable-debug \
	            --enable-doc \
	            --enable-pic \
		    $(crossopts)


override_dh_strip:
	dh_strip

override_dh_auto_clean:
	touch config.mak
	dh_auto_clean