File: rules

package info (click to toggle)
remake 4.3+dbg-1.5+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 9,448 kB
  • sloc: ansic: 38,226; sh: 5,172; perl: 1,577; makefile: 151; lisp: 26; sed: 16
file content (26 lines) | stat: -rwxr-xr-x 824 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
#!/usr/bin/make -f
# -*- makefile -*-

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

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# need -fcommon to fix #957756. gcc-10 flipped the default to -fno-common, which
# makes the build fail. Upstream has just fixed this properly, so please remove
# the -fcommon thing when packaging a later version
# https://github.com/rocky/remake/issues/109
export DEB_CFLAGS_MAINT_APPEND += -fcommon

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure $@ -- --disable-nls --enable-maintainer-mode

# do not ship conflicting /usr/include/gnumake.h. This lives in the 'make'
# package, which has a library component. There's no reason to do this with
# remake, so I simply remove it
override_dh_install:
	rm -rf debian/remake/usr/include
	dh_install