File: rules.real

package info (click to toggle)
firmware-free 3.2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,464 kB
  • sloc: ansic: 16,001; asm: 4,303; yacc: 610; lex: 364; python: 327; makefile: 133; sh: 54; perl: 17
file content (42 lines) | stat: -rw-r--r-- 1,065 bytes parent folder | download | duplicates (3)
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
SHELL  := sh -e
DEB_HOST_ARCH     := $(shell dpkg-architecture -a$(ARCH) -qDEB_HOST_ARCH)
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -a$(ARCH) -qDEB_HOST_GNU_TYPE)
DEB_BUILD_ARCH    := $(shell dpkg-architecture -a$(ARCH) -qDEB_BUILD_ARCH)
HAVE_MULTIARCH    := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null)

export DH_OPTIONS

include debian/rules.defs

#
# Targets
#
binary-indep: install

install: PACKAGE_NAME = firmware-$(PACKAGE)
install: DH_OPTIONS = -p$(PACKAGE_NAME)
install:
	dh_testdir
	dh_testroot
	dh_prep
ifneq (,$(HAVE_MULTIARCH))
	echo firmware:Multi-Arch=foreign >>debian/$(PACKAGE_NAME).substvars
else
	echo firmware:Multi-Arch= >>debian/$(PACKAGE_NAME).substvars
endif
	@for i in $(FILES); do \
	  s=$(PACKAGE)/"$${i%:*}"; \
	  d=/lib/firmware/"$${i#*:}"; \
	  echo install -m644 -D "$$s" debian/$(PACKAGE_NAME)"$$d"; \
	  install -m644 -D "$$s" debian/$(PACKAGE_NAME)"$$d"; \
	done
	dh_installchangelogs
	dh_installdocs
	dh_installdebconf
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb