File: rules

package info (click to toggle)
original-awk 2012-12-20-6
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 484 kB
  • ctags: 775
  • sloc: ansic: 6,856; yacc: 407; makefile: 148; sh: 7
file content (19 lines) | stat: -rwxr-xr-x 539 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
#!/usr/bin/make -f
%:
	dh $@

package = original-awk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

CC = gcc
CFLAGS := `dpkg-buildflags --get CFLAGS` -Wall
LDFLAGS := `dpkg-buildflags --get LDFLAGS`
CPPFLAGS := `dpkg-buildflags --get CPPFLAGS`

override_dh_auto_build:
	dh_auto_build -- CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" ALLOC="$(LDFLAGS)" YACC="bison -d -y"

override_dh_auto_install:
	install -m 755 a.out debian/$(package)/usr/bin/$(package)
	install -m 644 awk.1 debian/$(package)/usr/share/man/man1/$(package).1