File: rules

package info (click to toggle)
gtk3-nocsd 3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 360 kB
  • sloc: ansic: 2,057; makefile: 84; sh: 47
file content (31 lines) | stat: -rwxr-xr-x 1,013 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	@# Use /usr/lib here, because libdir will be used for
	@# generating the wrapper script, and we want that to be the
	@# same on all architectures. Since the script leaves it to the
	@# dynamic linker to find the library, the path is not actually
	@# used if the library is installed to a system location.
	dh_auto_build -- prefix=/usr libdir=/usr/lib

	@# Generate HTML documentation
	printf '<!DOCTYPE html><html><head><title>gtk3-nocsd README</title></head><body>\n' > README.html
	markdown README.md >> README.html
	printf '</body></html>\n' >> README.html

override_dh_auto_clean:
	dh_auto_clean
	rm -f README.html

override_dh_auto_install:
	dh_auto_install -- prefix=/usr libdir=/usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

override_dh_fixperms:
	dh_fixperms
	! [ -f debian/libgtk3-nocsd0/usr/lib/*/libgtk3-nocsd.so.0 ] || \
		chmod 4644 debian/libgtk3-nocsd0/usr/lib/*/libgtk3-nocsd.so.0