-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
104 lines (80 loc) · 4.13 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#Standard stuff here
.PHONY: all clean pull install uninstall libubox_install uci_install ubus_install ustream-ssl_install uhttpd_install rpcd_install mountd_install jsonpath_install uclient_install
all: libubox/build
install: libubox_install uci_install ubus_install ustream-ssl_install uhttpd_install rpcd_install mountd_install jsonpath_install uclient_install
uninstall:
if [ -f ./libubox/build/install_manifest.txt ]; then xargs rm -f < ./libubox/build/install_manifest.txt; fi
if [ -f ./uci/build/install_manifest.txt ]; then xargs rm -f < ./uci/build/install_manifest.txt; fi
if [ -f ./ubus/build/install_manifest.txt ]; then xargs rm -f < ./ubus/build/install_manifest.txt; fi
if [ -f ./ustream-ssl/build/install_manifest.txt ]; then xargs rm -f < ./ustream-ssl/build/install_manifest.txt; fi
if [ -f ./uhttpd/build/install_manifest.txt ]; then xargs rm -f < ./uhttpd/build/install_manifest.txt; fi
if [ -f ./rpcd/build/install_manifest.txt ]; then xargs rm -f < ./rpcd/build/install_manifest.txt; fi
if [ -f ./mountd/build/install_manifest.txt ]; then xargs rm -f < ./mountd/build/install_manifest.txt; fi
if [ -f ./jsonpath/build/install_manifest.txt ]; then xargs rm -f < ./jsonpath/build/install_manifest.txt; fi
if [ -f ./uclient/build/install_manifest.txt ]; then xargs rm -f < ./uclient/build/install_manifest.txt; fi
libubox/build:
mkdir ./libubox/build
cd ./libubox/build; cmake -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr -DLUAPATH=/usr/lib/x86_64-linux-gnu/lua/5.1 -DBUILD_EXAMPLES=OFF .. ; make
libubox_install: libubox/build
cd ./libubox/build; make DESTDIR=$(DESTDIR) install
uci/build: libubox/build
mkdir ./uci/build
cd ./uci/build; cmake -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr -DLUAPATH=/usr/lib/x86_64-linux-gnu/lua/5.1 .. ; make
uci_install: uci/build libubox_install
cd ./uci/build; make DESTDIR=$(DESTDIR) install
ubus/build: libubox/build
mkdir ./ubus/build
cd ./ubus/build; cmake -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr -DLUAPATH=/usr/lib/x86_64-linux-gnu/lua/5.1 -DBUILD_EXAMPLES=OFF .. ; make
ubus_install: ubus/build libubox_install
cd ./ubus/build; make DESTDIR=$(DESTDIR) install
ustream-ssl/build: libubox/build
mkdir ./ustream-ssl/build
cd ./ustream-ssl/build; cmake -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr .. ; make
ustream-ssl_install: ustream-ssl/build libubox_install
cd ./ustream-ssl/build; make DESTDIR=$(DESTDIR) install
uhttpd/build: libubox/build ustream-ssl/build ubus/build
mkdir ./uhttpd/build
cd ./uhttpd/build; cmake -DUCODE_SUPPORT=OFF -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr .. ; make
uhttpd_install: uhttpd/build libubox_install ustream-ssl_install ubus_install
cd ./uhttpd/build; make DESTDIR=$(DESTDIR) install
rpcd/build: libubox/build ubus/build uci/build
mkdir ./rpcd/build
cd ./rpcd/build; cmake -DUCODE_SUPPORT=OFF -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr -DIWINFO_SUPPORT=OFF .. ; make
rpcd_install: rpcd/build libubox_install ubus_install uci_install
cd ./rpcd/build; make DESTDIR=$(DESTDIR) install
mountd/build: libubox/build uci/build
mkdir ./mountd/build
cd ./mountd/build; cmake -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr .. ; make
mountd_install: mountd/build libubox_install uci_install
cd ./mountd/build; make DESTDIR=$(DESTDIR) install
jsonpath/build: libubox/build
mkdir ./jsonpath/build
cd ./jsonpath/build; cmake -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr .. ; make
jsonpath_install: jsonpath/build libubox_install
cd ./jsonpath/build; make DESTDIR=$(DESTDIR) install
uclient/build: libubox/build
mkdir ./uclient/build
cd ./uclient/build; cmake -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr .. ; make
uclient_install: libubox_install ustream-ssl_install uclient/build
cd ./uclient/build; make DESTDIR=$(DESTDIR) install
clean:
rm -rf ./libubox/build
rm -rf ./ubus/build
rm -rf ./uci/build
rm -rf ./ustream-ssl/build
rm -rf ./uhttpd/build
rm -rf ./rpcd/build
rm -rf ./mountd/build
rm -rf ./jsonpath/build
rm -rf ./uclient/build
clean_dist:
rm -rf ./uclient/build
rm ../openwrt_*.dsc
rm ../openwrt_*.tar.gz
rm ../openwrt_*_amd64.build
rm ../openwrt_*_source.build
rm ../openwrt_*_source.buildinfo
rm ../openwrt_*_source.changes
rm ../openwrt_*_source.ppa.upload
pull:
git submodule update --recursive --remote