File: rules

package info (click to toggle)
bfs 4.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,340 kB
  • sloc: ansic: 20,471; sh: 3,127; makefile: 217
file content (26 lines) | stat: -rwxr-xr-x 545 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk
include /usr/share/dpkg/buildtools.mk

# Fix FTBFS on kfreebsd-* architectures
# https://github.com/tavianator/bfs/issues/56
ifneq (,$(filter kfreebsd,$(DEB_HOST_ARCH_OS)))
export DEB_CFLAGS_MAINT_APPEND = -DBFS_HAS_SYS_EXTATTR=0
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	./configure 'CC=$(CC)'

override_dh_auto_test:
ifneq ($(shell id -u),0)
	dh_auto_test
endif

override_dh_installchangelogs:
	dh_installchangelogs docs/CHANGELOG.md