File: rules

package info (click to toggle)
glaze 6.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,948 kB
  • sloc: cpp: 121,839; sh: 99; ansic: 26; makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 476 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	-Dglaze_DEVELOPER_MODE=OFF \
	-DBUILD_TESTING=OFF

execute_after_dh_auto_build:
ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
	mkdocs build -d docs.debian/html
	find docs.debian -type f -exec sed -i 's|<link [^>]*href="http[^>]*>||g' '{}' ';'
	find docs.debian -type f -exec sed -i -E 's|<img[^>]+src="https?://[^"]+"[^>]*/>||g' '{}' ';'
endif