File: rules

package info (click to toggle)
bootterm 0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: ansic: 1,752; makefile: 77; sh: 23
file content (30 lines) | stat: -rwxr-xr-x 800 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CFLAGS_MAINT_APPEND = '-DVERSION=\\\"$(DEB_VERSION)\\\"'

%:
	dh $@

override_dh_auto_build:
	# upstream Makefile does not support CPPFLAGS, abuse CFLAGS for it
	dh_auto_build -- \
		V=1 \
	 	CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
	 	LDFLAGS="$(LDFLAGS)"
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	debian/generate-manpage.sh bin/bt > debian/bt.1
endif

override_dh_auto_install:
	# * Don't hide commands, verbose mode
	# * Install under /usr, not /usr/local
	# * make install strips (for some reason), but we want to do that later
	#   with dh_strip, while keeping the symbols for dbgsym
	dh_auto_install -- \
		V=1 \
	       	PREFIX=/usr \
	       	STRIP=true