File: rules

package info (click to toggle)
nss-pem 1.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 196,096 kB
  • sloc: ansic: 885,997; cpp: 77,101; asm: 49,744; sh: 19,407; python: 6,406; xml: 4,801; makefile: 2,350; perl: 2,156; javascript: 1,525; lex: 306; yacc: 79; sed: 15; csh: 10
file content (28 lines) | stat: -rwxr-xr-x 794 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
#!/usr/bin/make -f

export DEB_CFLAGS_MAINT_APPEND += -I../nss/dist/private/nss
export DEB_LDFLAGS_MAINT_APPEND += -L../nss/dist/lib/

%:
	dh $@ --builddirectory=build/

override_dh_auto_configure:
	dh_auto_configure --sourcedirectory=src -- \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
		-DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)/nss

override_dh_auto_build:
	(cd nss; QUILT_PATCHES=debian/patches quilt push -a; debian/rules build)
	dh_auto_build

override_dh_clean:
	(cd nss; debian/rules clean)
	dh_clean

gentarball: SOURCE=nss-pem
gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//')
gentarball:
	tar --transform 's,^,$(SOURCE)-$(UV)/,' \
		--exclude './debian' --exclude-vcs \
		-cJf ../$(SOURCE)_$(UV).orig.tar.xz .