-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
74 lines (56 loc) · 1.38 KB
/
Makefile
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
include ../common.mk
GEN := ../generic/$(SRC)
DSC := $(PKG)_$(VER).dsc
DEB := $(PKG)_$(VER)_all.deb
.PHONY: all
all: $(DEB)
.PHONY: install
install: $(DEB)
dpkg --install $(DEB)
.PHONY: remove
remove:
dpkg --remove $(PKG)
.PHONY: purge
purge:
dpkg --purge $(PKG)
.PHONY: reconfigure
reconfigure:
dpkg-reconfigure $(PKG)
.PHONY: clean
clean:
+cd $(SRC) && dpkg-buildpackage --no-sign --post-clean
.PHONY: distclean
distclean: clean
rm --force $(CPY)
rm --force *.deb
rm --force *.buildinfo
rm --force *.changes
rm --force *.dsc
rm --force *.xz
.PHONY: translate
translate:
cd $(SRC) && debconf-updatepo
CPY := $(SRC)10-huawei-wmi.rules
CPY += $(SRC)debian/huawei-wmi-privilege.service
CPY += $(SRC)debian/huawei-wmi-reinstate.service
CPY += $(SRC)available
CPY += $(SRC)privilege
CPY += $(SRC)reinstate
$(DEB): $(CPY) $(shell find $(SRC) | grep -vFf .gitignore)
+cd $(SRC) && dpkg-buildpackage --no-sign
touch $@
lintian $(DSC)
lintian $(DEB)
$(SRC)10-huawei-wmi.rules: $(GEN)10-huawei-wmi.rules
cp --archive $< $@
$(SRC)debian/huawei-wmi-privilege.service: $(GEN)huawei-wmi-privilege.service
cp --archive $< $@
$(SRC)debian/huawei-wmi-reinstate.service: $(GEN)huawei-wmi-reinstate.service
cp --archive $< $@
$(SRC)available: $(GEN)available
cp --archive $< $@
$(SRC)privilege: $(GEN)privilege
cp --archive $< $@
$(SRC)reinstate: $(GEN)reinstate
cp --archive $< $@
Makefile:;