File: rules

package info (click to toggle)
svgpp 1.2.3%2Bdfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,280 kB
  • sloc: cpp: 26,586; makefile: 164; python: 73; xml: 48; sh: 36
file content (29 lines) | stat: -rwxr-xr-x 1,047 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Reduce size of debug symbols to fix FTBFS due to the
# 2GB/3GB address space limits on 32bit
DEB_HOST_ARCH_BITS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)
 ifeq (32,$(DEB_HOST_ARCH_BITS))
 export DEB_CXXFLAGS_MAINT_APPEND = -g1
endif

%:
	dh $@ --with sphinxdoc --buildsystem=cmake --sourcedirectory=src/ --no-parallel

override_dh_auto_build:
	dh_auto_build
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
	cd doc/sphinx/ ; python3 -m sphinx -b html ./ html
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf doc/sphinx/html

override_dh_sphinxdoc-indep:
	dh_sphinxdoc
	find debian/libsvgpp-doc/ -type f -print0 | xargs -0 sed -i 's/https:\/\/cdn\.mathjax\.org\/mathjax\/latest/\/usr\/share\/javascript\/mathjax/g'
	find debian/libsvgpp-doc/ -type f -print0 | xargs -0 sed -i 's/https:\/\/cdnjs\.cloudflare\.com\/ajax\/libs\/mathjax\/2\.7\.1/\/usr\/share\/javascript\/mathjax\//g'
	rm -rf debian/libsvgpp-doc/usr/share/doc/libsvgpp-dev/html/_sources/license.txt