File: rules

package info (click to toggle)
jq 1.5+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,476 kB
  • ctags: 2,144
  • sloc: ansic: 12,692; sh: 11,961; yacc: 821; lex: 184; makefile: 147
file content (31 lines) | stat: -rwxr-xr-x 683 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
#!/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

get-orig-source:
	uscan --force-download --rename --destdir .

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

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

override_dh_install:
	dh_install --list-missing

%:
	dh $@