File: rules

package info (click to toggle)
dwz 0.13-5
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 1,564 kB
  • sloc: ansic: 13,097; asm: 1,745; exp: 1,210; sh: 919; makefile: 98; awk: 23
file content (25 lines) | stat: -rwxr-xr-x 588 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
#!/usr/bin/make -f
# -*- makefile -*-

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

DEB_BUILD_OPTIONS := $(DEB_BUILD_OPTIONS) nostrip noopt
export DEB_BUILD_OPTIONS

CFLAGS  := $(shell dpkg-buildflags --get CPPFLAGS; dpkg-buildflags --get CFLAGS)
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@ --parallel --buildsystem=makefile --builddirectory=build

override_dh_auto_configure:
	rm -rf build
	mkdir build
	cd build && ../configure

override_dh_auto_build:
	dh_auto_build -- CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"

override_dh_auto_test:
	-dh_auto_test