File: rules

package info (click to toggle)
libcgicc 3.2.19-0.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,996 kB
  • ctags: 922
  • sloc: cpp: 5,023; sh: 4,438; makefile: 166; sed: 1
file content (37 lines) | stat: -rwxr-xr-x 1,474 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
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --host=$(DEB_HOST_GNU_TYPE) --htmldir=\$${prefix}/share/doc/libcgicc-doc/html --disable-demos

override_dh_auto_install:
	dh_auto_install
	# work around doxygen bug - embeds copy of jquery unnecessarily
	rm -f $(CURDIR)/debian/tmp/usr/share/doc/libcgicc-doc/html/jquery.js
	# Remove the debug-prefix-map compiler option, as it conflicts with mutli-arch
	sed -i -e 's/ *-fdebug-prefix-map=[^ "]*//' $(CURDIR)/debian/tmp/usr/bin/cgicc-config

override_dh_installexamples:
	dh_installexamples -XMakefile

override_dh_fixperms:
	dh_fixperms
	find $(CURDIR)/debian/libcgicc-doc -name '*.png' -o -name '*.svg' | xargs --no-run-if-empty chmod 644
	find $(CURDIR)/debian/libcgicc-doc -name .deps | xargs --no-run-if-empty rm -r