File: rules

package info (click to toggle)
reglookup 1.0.1+svn287-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 952 kB
  • sloc: ansic: 6,676; python: 3,762; makefile: 40; sh: 27
file content (37 lines) | stat: -rwxr-xr-x 955 bytes parent folder | download | duplicates (2)
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 PYBUILD_NAME=pyregfi
LIB_R_VERSION=1.0.1

LIBDIR=$(CURDIR)/debian/libregfi1

export DOCPATH=$(CURDIR)/debian/reglookup-doc/usr/share/doc/reglookup-doc
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_BUILD_HARDENING=1

%:
	dh $@ --buildsystem=pybuild --with python2,python3

override_dh_auto_build:
	scons bin doc doc-devel
	dh_auto_build

override_dh_auto_install:
	PREFIX=/usr DESTDIR=debian/reglookup MANDIR=/usr/share/man LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) scons install
	dh_auto_install

override_dh_install-arch:
	dh_install
	cp $(CURDIR)/lib/libregfi.so \
           $(LIBDIR)/usr/lib/libregfi.so.$(LIB_R_VERSION)

override_dh_install-indep:
	dh_install
	# Remove unnecessary hashes
	find $(DOCPATH) -name '*.md5' -exec rm -f {} \;
	# Using jdupes to convert duplicate files in softlinks
	jdupes -rl $(DOCPATH)
	# Avoid an embedded javascript library
	rm $(DOCPATH)/pyregfi/jquery.js

override_dh_auto_test: