File: rules

package info (click to toggle)
xonix 1.4-34
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 668 kB
  • sloc: ansic: 9,580; sh: 83; makefile: 21
file content (32 lines) | stat: -rwxr-xr-x 744 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
32
#!/usr/bin/make -f

CC = gcc

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic -D__unix

# cat the makefile to verify what flags are being used
override_dh_auto_build:
	echo '#RUN imake'
	xmkmf
	echo '##REPLACE in Makefile'
	sed -i -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/g; s/_SVID_SOURCE/_DEFAULT_SOURCE/g' Makefile
	echo '##BEGIN Makefile'
	cat Makefile
	echo '##END Makefile'
	$(MAKE) CC='$(CC)' \
		CCLINK='$(CC)' \
		CDEBUGFLAGS='$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)' \
		XONIXDIR=/var/cache/xonix

override_dh_auto_install:
	dh_auto_install -- INSTDATFLAGS='-m 0644'

execute_after_dh_install:
	# Remove unused directories
	rm -rf debian/xonix/usr/lib debian/xonix/usr/bin

%:
	dh $@

# End of file