File: rules

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	-Dglaze_DEVELOPER_MODE=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