File: rules

package info (click to toggle)
libnginx-mod-js 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,808 kB
  • sloc: ansic: 114,096; perl: 8,447; javascript: 2,520; exp: 487; sh: 322; xml: 312; python: 181; makefile: 18
file content (29 lines) | stat: -rwxr-xr-x 856 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# nginx_mod needs to find the modules source dir using sourcedirectory
# nginx_mod calls doit_in_builddir but without builddirectory,
# it tries to chdir from sourcedirectory and fails

%:
	dh $@ --sourcedirectory=nginx --builddirectory=build-modules


override_dh_auto_configure:
	./configure \
		--cc-opt="$(shell dpkg-buildflags --get CFLAGS) -fPIC $(shell dpkg-buildflags --get CPPFLAGS)" \
		--ld-opt="$(shell dpkg-buildflags --get LDFLAGS)" \
		--no-libxml2 \
		--no-zlib
	dh_auto_configure --buildsystem=nginx_mod

override_dh_auto_build-arch:
	make
	dh_auto_build --buildsystem=nginx_mod
	help2man --no-info --version-option=-v --help-option=-h --name='JavaScript for Nginx' ./build/njs -o build/njs.1

override_dh_auto_clean:
	rm -f Makefile
	rm -rf build
	rm -rf build-modules