File: rules

package info (click to toggle)
netsurf 3.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 85,588 kB
  • sloc: ansic: 386,879; xml: 81,991; cpp: 6,274; perl: 4,531; makefile: 3,191; yacc: 2,246; python: 2,170; sh: 1,442; jsp: 1,156; lex: 623; javascript: 540; ruby: 329; asm: 288; lisp: 151; php: 6
file content (30 lines) | stat: -rwxr-xr-x 1,073 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
#!/usr/bin/make -f
# -*- makefile -*-

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wno-error
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- V=1 PREFIX=/usr TARGET=gtk3
	dh_auto_build -- V=1 PREFIX=/usr TARGET=framebuffer

override_dh_auto_install:
	dh_auto_install -- PREFIX=/usr TARGET=gtk3
	mv debian/tmp/usr/bin/netsurf-gtk3 debian/tmp/usr/bin/netsurf-gtk
	mkdir -p debian/netsurf-gtk/usr/share/pixmaps
	convert netsurf/frontends/gtk/res/netsurf.xpm -resize \!32x\!32 debian/netsurf-gtk/usr/share/pixmaps/netsurf.xpm
	convert netsurf/frontends/gtk/res/netsurf.xpm debian/netsurf-gtk/usr/share/pixmaps/netsurf.png
	dh_auto_install -- PREFIX=/usr TARGET=framebuffer
	rm debian/tmp/usr/share/netsurf/ca-bundle.txt
	ln -s /etc/ssl/certs/ca-certificates.crt debian/tmp/usr/share/netsurf/ca-bundle.txt

override_dh_auto_clean:
	dh_auto_clean -- PREFIX=/usr TARGET=gtk3
	dh_auto_clean -- PREFIX=/usr TARGET=framebuffer