File: rules

package info (click to toggle)
a56 1.3%2Bdfsg-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 664 kB
  • sloc: yacc: 7,550; ansic: 5,851; makefile: 231; awk: 4; sh: 1
file content (29 lines) | stat: -rwxr-xr-x 651 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -Wextra -Wno-comment -Wno-parentheses -Wno-unused-variable

%:
	dh $@ --no-parallel

override_dh_clean:
	dh_clean
	rm -f gram.c gram.h
	rm -f toktab.c kparse.c
	rm -f a56-keybld a56-toomf
	rm -f debian/bin2h debian/a56-tobin
	rm -f debian/bin2h.o debian/a56-tobin.o
	rm -f bin2h a56-tobin

override_dh_auto_build:
	dh_auto_build

override_dh_install:
	mv keybld a56-keybld
	mv toomf a56-toomf
	dh_install