-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMakefile
91 lines (63 loc) · 1.5 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
VERSION=1.2.0
all: build
$(MAKE) run
# Default UI is Material
run: runm
###############
# Building UI #
###############
build: root enyo material tiles panel
root:
$(MAKE) -C www build
enyo:
$(MAKE) -C www/enyo build
material:
$(MAKE) -C www/m build
tiles:
$(MAKE) -C www/t build
panel:
$(MAKE) -C www/p build
###############################
# Running R2 with specitic UI #
###############################
runenyo:
r2 -q -e http.sandbox=0 -e http.homeroot=dist -e http.ui=enyo -c=H /bin/ls
runm:
r2 -q -e http.sandbox=false -e http.homeroot=dist -e http.ui=m -c=H /bin/ls
runt:
r2 -q -e http.homeroot=dist -e http.ui=t -c=H /bin/ls
runp:
r2 -q -e http.homeroot=dev -e http.ui=p -c=H /bin/ls
#####################
# Building releases #
#####################
release-root: root
release-enyo: enyo
release-material: material
$(MAKE) -C www/m release
release-tiles: tiles
release-panel: panel
$(MAKE) -C www/p release
release: release-root release-enyo release-material release-tiles release-panel
################################
# Making archives for releases #
################################
dist: release
tar cJvf radare2-webui-$(VERSION).tar.xz dist
indivualdist:
cd dist
tar zcvf ../r2-webui-enyo.tar.gz enyo
tar zcvf ../r2-webui-m.tar.gz m
tar zcvf ../r2-webui-t.tar.gz t
tar zcvf ../r2-webui-p.tar.gz p
##################
# Cleaning files #
##################
clean:
$(MAKE) -C www/enyo clean
rm -rf dist
rm -rf dev
mrproper:
git clean -xdf
.PHONY: enyo all
.ONESHELL: indivualdist