File: rules

package info (click to toggle)
modconf 0.3.9
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 608 kB
  • ctags: 70
  • sloc: sh: 923; perl: 267; makefile: 92
file content (31 lines) | stat: -rwxr-xr-x 751 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

# copied from kernel-image-i386
version26 :=  $(shell \
        sed -n 's/.*linux-source-\([^,]*\).*/\1/p; t e; b; :e q' \
                debian/control \
)

build: build-stamp
build-stamp:
	dh_testdir
	[ -d build ] || mkdir build
	cd build && tar xjf /usr/src/linux-source-$(version26).tar.bz2
	$(MAKE) KERNELTREE26=$(CURDIR)/build/linux-source-$(version26)
	touch build-stamp

clean:
	dh clean

binary-indep: build
	dh binary-indep --after dh_auto_build

binary-arch: build
# There are no architecture-dependent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

# Below here is fairly generic really
binary:		binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean