File: rules

package info (click to toggle)
kernel-latest-2.6-alpha 101sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 20 kB
  • ctags: 5
  • sloc: makefile: 34
file content (58 lines) | stat: -rwxr-xr-x 1,145 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
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/make -f
#
# debian/rules for kernel-latest-*-alpha
#
# GNU copyright 1997 to 1999 by Joey Hess.
# Copyright (c) 1999-2002 Herbert Xu <herbert@debian.org>
#
# $Id: rules,v 1.24 2003/09/27 08:14:38 herbert Exp $

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

SHELL := sh -e

FLAVOURS := generic smp
BINARY_ARCH := $(FLAVOURS:=.binary-arch)
kernel := kernel-image-2.6
headers := kernel-headers-2.6

build binary-indep:
# Ye olde no-op.

clean:
	rm -f *-stamp
	dh_testdir
	dh_clean

install: 
	dh_testdir
	dh_clean -k
	dh_installdirs

# Build architecture-independent files here.
binary-indep:

%.binary-arch: kernel-image-2.6-%.binary-arch-pkg kernel-headers-2.6-%.binary-arch-pkg
	@true

%.binary-arch-pkg:
	dh_testroot
	dh_testdir
	dh_clean -k -p$*
	dh_installdirs -p$*
	dh_installdocs -p$*
	dh_installchangelogs -p$*
	dh_compress -p$*
	dh_fixperms -p$*
	dh_installdeb -p$*
	dh_gencontrol -p$*
	dh_md5sums -p$*
	dh_builddeb -p$*

# Build architecture-dependent files here.
binary-arch: install $(BINARY_ARCH)
	@true

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