File: rules

package info (click to toggle)
newlib 1.12.0.20041202-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 41,384 kB
  • ctags: 33,862
  • sloc: ansic: 321,125; makefile: 37,809; asm: 19,759; sh: 11,033; perl: 2,320; yacc: 432; lisp: 394; exp: 322; lex: 114; cpp: 37; awk: 25
file content (45 lines) | stat: -rwxr-xr-x 951 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
#!/usr/bin/make -f

build: build-stamp
build-stamp:
	-mkdir _build
	cd _build && ../configure --with-newlib \
		--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
	$(MAKE) -C _build
	touch $@

install: build
	dh_clean -k
	$(MAKE) -C _build DESTDIR=$(PWD)/debian/tmp install
	rm -f debian/tmp/usr/*/lib/libthread_db.so.1

clean:
	rm -f build-stamp
	dh_clean
	rm -rf _build

binary-indep: install
	dh_install -i
	dh_installchangelogs -i ChangeLog
	dh_installdocs -i
	dh_compress -i
	dh_gencontrol -i
	dh_builddeb -i

binary-arch: install
	install -D -o root -g root -m 644 debian/libnewlib0.lintian \
		debian/libnewlib0/usr/share/lintian/overrides/libnewlib0
	dh_install -a
	dh_installchangelogs -a newlib/ChangeLog
	dh_installdocs -a
	dh_link -a
	dh_compress -a
	dh_fixperms -a
	dh_strip -a
	dh_makeshlibs -a
	dh_gencontrol -a
	dh_builddeb -a

binary: binary-indep binary-arch

.PHONY: build install clean binary-indep binary-arch binary