File: rules

package info (click to toggle)
rt-tests 0.83-1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 840 kB
  • sloc: ansic: 7,695; python: 424; makefile: 274; sh: 9
file content (31 lines) | stat: -rwxr-xr-x 579 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
#!/usr/bin/make -f

export prefix=/usr

ifneq (,$(findstring $(DEB_BUILD_ARCH), amd64 i386 ia64 mips mipsel powerpc))
export NUMA=1
endif

DH_SEQUENCE = $@
DH = dh $(DH_SEQUENCE) --with dkms

build-arch: build-arch-stamp
build-indep:
build: build-arch build-indep

install: build install-stamp

build-arch-stamp install-stamp: DH_SEQUENCE = ${@:-stamp=}
build-arch-stamp install-stamp:
	$(DH)
	touch $@

binary-arch binary-indep: install
	$(DH)

binary: binary-arch binary-indep

clean:
	$(DH)

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