File: rules

package info (click to toggle)
bls-standalone 0.20151231
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 280 kB
  • sloc: ansic: 1,913; python: 236; makefile: 63
file content (55 lines) | stat: -rwxr-xr-x 1,276 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

include /usr/share/dpkg/buildflags.mk

CFLAGS += -Wall
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
	MAKEFLAGS += -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif

build-arch-stamp:
	dh_testdir
	$(MAKE) -C scan CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
	scan/compile -o rules/rules.compiled rules/*.description rules/*.switch
	sed -e "s!^\(lib\|share\)dirdefault *= *'[^']*' *#.*!\1dirdefault = '/usr/\1/bls-standalone'!" bls-standalone.py > bls-standalone
	touch $@

build-arch build: build-arch-stamp
build-indep:

clean:
	dh_testdir
	dh_testroot
	rm -f build-arch-stamp bls-standlone rules/rules.compiled
	$(MAKE) -C scan clean
	dh_clean

binary-indep: build-indep
# We have nothing to do.

binary-arch: build-arch
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	dh_install
	dh_installman bls-standalone.1
	dh_installchangelogs
	dh_installdocs
	dh_installexamples
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build build-arch build-indep clean binary-indep binary-arch binary