File: rules

package info (click to toggle)
kernel-patch-2.2.13-netwinder 19991215
  • links: PTS
  • area: main
  • in suites: potato
  • size: 556 kB
  • ctags: 4
  • sloc: makefile: 32; sh: 26
file content (45 lines) | stat: -rwxr-xr-x 831 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

v=2.2.13
r=19991215
p=kernel-patch-$(v)-netwinder
a=$(shell dpkg --print-architecture)

build:
	dh_testdir
	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -f build
	dh_clean

binary-indep:	build
	dh_testdir

binary-arch:	build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs -p$(p)
	cp -a arm debian/tmp/usr/src/kernel-patches/arm
	dh_installdocs -p$(p)
	dh_installdeb -p$(p)
	dh_shlibdeps -p$(p)
	dh_gencontrol -p$(p)
	dh_md5sums -p$(p)
	dh_builddeb -p$(p)
	dpkg-distaddfile kernel-image-$(v)-netwinder_$(r)_arm.deb base optional
	dpkg-distaddfile kernel-headers-$(v)_$(r)_arm.deb devel optional

binary: binary-arch binary-indep

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

.PHONY: binary binary-arch binary-indep clean

# Local Variables:
# mode:Makefile
# End: