File: rules

package info (click to toggle)
ksh93u%2Bm 1.0.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,744 kB
  • sloc: ansic: 142,757; sh: 33,435; makefile: 32
file content (44 lines) | stat: -rwxr-xr-x 1,140 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
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all reproducible=+all
export DPKG_EXPORT_BUILDFLAGS=1
export LC_ALL=C
export LANG=C
export TZ=GMT

include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/pkg-info.mk

export CCFLAGS+=$(shell dpkg-buildflags --get CFLAGS)
export CCFLAGS+=$(shell dpkg-buildflags --get CPPFLAGS)
export LDFLAGS+=$(shell dpkg-buildflags --get LDFLAGS)

ARCH = $(shell bin/package)

%:
	dh $@

override_dh_auto_configure:
	@echo "CCFLAGS=$(CCFLAGS)"
	@echo "LDFLAGS=$(LDFLAGS)"

override_dh_auto_build:
	bin/package make strip=0

override_dh_auto_install-arch:
	cp arch/$(ARCH)/bin/ksh debian/ksh93u+m/usr/bin/ksh93
	cp arch/$(ARCH)/bin/shcomp debian/ksh93u+m/usr/bin/shcomp93
	cp arch/$(ARCH)/man/man1/sh.1 debian/ksh93u+m/usr/share/man/man1/ksh93.1
	cp arch/$(ARCH)/fun/* debian/ksh93u+m/usr/share/ksh/functions
	cp arch/$(ARCH)/src/cmd/ksh93/shopt.h debian/ksh93u+m/usr/include/ksh/

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_gencontrol:
	dh_gencontrol --package=ksh93u+m
	dh_gencontrol --package=ksh -- -v20240113-$(DEB_VERSION)

clean:
	dh_testdir
	dh_clean