File: rules

package info (click to toggle)
newlib 4.6.0.20260123-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 69,060 kB
  • sloc: ansic: 510,811; asm: 53,339; makefile: 52,993; sh: 12,369; perl: 2,902; cpp: 1,280; python: 999; lisp: 720; exp: 359; pascal: 47; xml: 40
file content (46 lines) | stat: -rwxr-xr-x 1,012 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
45
46
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

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

# Ensure reproducible and locale independent build.
export LC_ALL=C

TOP_DIR := $(shell pwd)
TMP_DIR := debian/tmp
TMP_NANO_DIR := debian/tmp_nano

%:
	dh $@ -B$(BUILD_DIR) --without autoreconf

debian/newlib-$(DEB_VERSION_UPSTREAM).tar.xz:
	XZ_OPT=-9 \
	tar -acf $@ --exclude=debian --exclude-vcs --exclude='*.dh-orig' \
		--sort=name \
		--mtime="@$(SOURCE_DATE_EPOCH)" \
		--owner=0 --group=0 --numeric-owner \
		--mode=go=rX,u+rw,a-s \
		`pwd`/../`basename $(TOP_DIR)`

override_dh_clean:
	dh_clean
	rm -f debian/newlib-*.tar.xz

override_dh_auto_configure: debian/newlib-$(DEB_VERSION_UPSTREAM).tar.xz
	@echo Nothing to do

override_dh_auto_test:
	@echo Nothing to do

override_dh_auto_build:
	@echo Nothing to do

override_dh_auto_install:
	@echo Nothing to do

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog