File: rules

package info (click to toggle)
json-c 0.12.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,964 kB
  • ctags: 726
  • sloc: sh: 11,420; ansic: 4,059; makefile: 112
file content (37 lines) | stat: -rwxr-xr-x 983 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
32
33
34
35
36
37
#!/usr/bin/make -f
#export DH_VERBOSE=1

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DPKG_GENSYMBOLS_CHECK_LEVEL ?= 4

override_dh_auto_clean:
	if test -e Makefile; then \
	    make clean; \
	    for f in Makefile config.h config.log config.status \
	             json.pc json_config.h libtool stamp-h1 stamp-h2 \
	             json-c.pc tests/Makefile; do \
                rm -f $$f; \
	done; \
	fi; \
	if test -d tests/testSubDir; then \
	    rm -R tests/testSubDir; \
	fi

override_dh_auto_install:
	dh_auto_install

	# we install libjson-c into /lib, so fix the link in a way understood by ldconfig
	rm debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libjson-c.so
	# new links are created by libjson-c-dev.links

override_dh_strip:
	dh_strip --dbgsym-migration='libjson-c2-dbg (<< 0.12-3)'

override_dh_installdocs:
	dh_installdocs -Xjquery.js

override_dh_install:
	dh_install --fail-missing -Xlibjson-c.la

%:
	dh  $@ --with autoreconf --with autotools-dev