File: rules

package info (click to toggle)
glhack 1.2-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,748 kB
  • sloc: ansic: 208,571; cpp: 13,139; yacc: 2,005; makefile: 1,152; lex: 377; sh: 121; awk: 89; sed: 11
file content (33 lines) | stat: -rwxr-xr-x 919 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
31
32
33
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

LDFLAGS  = $(shell dpkg-buildflags --get LDFLAGS)
LDFLAGS += -Wl,--as-needed

CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS   = $(shell dpkg-buildflags --get CFLAGS)
CFLAGS  += -Wall -std=gnu17

LINK     = $(CC) $(LDFLAGS)
CCX      = $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS)

%:
	dh $@ --no-parallel

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.GL

override_dh_auto_build:
	dh_auto_build -- CC="$(CCX)" LINK="$(LINK)"

override_dh_auto_install:
	# Prevent upstream from chown/chgrp'ing things as that
	# would require (fake)root. Instead, we set relevant
	# ownership via `debian/debputy.manifest`.
	dh_auto_install -- CHOWN=true CHGRP=true

execute_after_dh_install:
	# Pixmaps
	install -m 0644 dat/*.png debian/glhack/usr/share/pixmaps/glhack/
	install -m 0644 debian/glhack.xpm debian/glhack/usr/share/pixmaps/glhack/