File: rules

package info (click to toggle)
nss-pem 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 65,984 kB
  • sloc: ansic: 529,066; cpp: 67,354; asm: 48,901; sh: 19,082; python: 5,411; xml: 4,670; makefile: 2,284; perl: 1,856; lex: 306; yacc: 79; sed: 15; csh: 10
file content (30 lines) | stat: -rwxr-xr-x 793 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

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:
	mkdir build
	cd build && cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
		-DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)/nss \
		../src

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 .