blob: ca5292b790eb703ea0b01407dfee63b5f5addf1c (
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
|
SHELL := sh -e
comma:=,
export DH_OPTIONS
#
# Targets
#
binary_generic:
dh_testdir
dh_testroot
dh_prep
@for i in $(subst [comma],$(comma),$(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 $(subst [comma],$(comma),$(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
binary_meta: binary_generic
|