File: rules

package info (click to toggle)
jq 1.6-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,196 kB
  • sloc: ansic: 13,417; yacc: 872; sh: 403; lex: 185; makefile: 158; javascript: 50; python: 20
file content (28 lines) | stat: -rwxr-xr-x 632 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
# -*- makefile -*-
DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-include /usr/share/dpkg/buildflags.mk

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

override_dh_auto_configure:
	cd docs && rake manpage > ../jq.1
	dh_auto_configure -- --disable-static

override_dh_install:
	find debian/tmp -name '*.la' -print -delete
	dh_install

override_dh_auto_test:
	VERBOSE=1 dh_auto_test

override_dh_auto_clean:
	dh_auto_clean
	test ! -f ./jq.1.old || mv ./jq.1.old jq.1

%:
	dh $@