File: rules

package info (click to toggle)
ipw3945d 1.7.22-4
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 232 kB
  • ctags: 3
  • sloc: sh: 119; makefile: 34
file content (43 lines) | stat: -rwxr-xr-x 762 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
#!/usr/bin/make -f

ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq (i386,$(strip $(ARCH)))
  ARCHDIR := x86
endif
ifeq (amd64,$(strip $(ARCH)))
  ARCHDIR := x86_64
endif
ifndef ARCHDIR
  $(error Unsupported architecture $(ARCH))
endif

clean:
	dh_testdir
	dh_clean

binary: binary-indep binary-arch

binary-indep: build

binary-arch: build install

build:

install:
	dh_testdir
	dh_testroot
	dh_installdocs README.ipw3945d
	dh_installchangelogs
	dh_installdirs
	dh_installinit -- start 39 S . start 36 0 6 .
	dh_installmodules
	dh_installman debian/ipw3945d.8
	dh_installlogrotate
#	Install the right version, depending on the arch
	dh_install $(ARCHDIR)/ipw3945d /sbin
	dh_shlibdeps
	dh_installdeb
	dh_fixperms
	dh_compress
	dh_gencontrol
	dh_builddeb