File: rules

package info (click to toggle)
net-cpp 2.2.1%2Bdfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 892 kB
  • sloc: cpp: 3,643; ansic: 185; makefile: 24
file content (40 lines) | stat: -rwxr-xr-x 1,207 bytes parent folder | download | duplicates (3)
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
38
39
40
#!/usr/bin/make -f
# -*- makefile -*-

export DPKG_GENSYMBOLS_CHECK_LEVEL=4

include /usr/share/dpkg/default.mk

# The home directory of user buildd does not exist on the builders
export XDG_DATA_HOME=/tmp

# Enable Hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with pkgkde_symbolshelper

override_dh_auto_test:
	dh_auto_test --no-parallel

override_dh_install:
	# Fix installation location of the doc:pkg files
	mv $(CURDIR)/debian/tmp/usr/share/doc/net-cpp \
	     $(CURDIR)/debian/tmp/usr/share/doc/libnet-cpp-doc
	dh_install
	# Get rid of duplicate files and replace them by symlinks
	if [ -d "$(CURDIR)/debian/libnet-cpp-doc/usr/share/doc/libnet-cpp-doc/html/" ]; then \
	    find "$(CURDIR)/debian/libnet-cpp-doc/usr/share/doc/libnet-cpp-doc/html/" -name *.md5 -delete; \
	    rdfind -makesymlinks true "$(CURDIR)/debian/libnet-cpp-doc/usr/share/doc/libnet-cpp-doc/html/"; \
	    symlinks -rc "$(CURDIR)/debian/libnet-cpp-doc/usr/share/doc/libnet-cpp-doc/html/"; \
	fi

override_dh_missing:
	dh_missing --fail-missing

override_dh_clean:
	dh_clean
	rm -f results.txt

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --repack --destdir=..