blob: 3fa602f35f26d8bce684243cb6755776ea0a6925 (
plain)
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
|
SHELL := sh -e
export DH_OPTIONS
#
# Targets
#
binary-indep: install
install: PACKAGE_NAME = firmware-$(PACKAGE)
install: DH_OPTIONS = -p$(PACKAGE_NAME)
install:
dh_testdir
dh_testroot
dh_prep
@for i in $(FILES); do \
s="$${i%:*}"; \
d=/lib/firmware/"$${i#*:}"; \
echo install -m644 -D "$$s" debian/$(PACKAGE_NAME)"$$d"; \
install -m644 -D "$$s" debian/$(PACKAGE_NAME)"$$d"; \
done
@for i in $(LINKS); do \
link=debian/$(PACKAGE_NAME)/lib/firmware/"$${i%:*}"; \
target="$${i#*:}"; \
install -d "$${link%/*}"; \
echo ln -s "$$target" "$$link"; \
ln -s "$$target" "$$link"; \
done
ifneq ($(FILES),)
dh_installdirs /usr/share/metainfo
dh_install debian/$(PACKAGE_NAME).metainfo.xml /usr/share/metainfo
endif
dh_bugfiles
dh_installchangelogs
dh_installdocs -XTODO
dh_installdebconf
dh_lintian
dh_link
dh_compress
dh_fixperms
dh_installdeb
if command -v dh_movetousr >/dev/null; then dh_movetousr; fi
dh_gencontrol
dh_md5sums
dh_builddeb
|