-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (38 loc) · 1.42 KB
/
Makefile
File metadata and controls
48 lines (38 loc) · 1.42 KB
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
# These paths will have to be changed according to where you store these directories on your system
PATH_RETICULUM_WEBSITE=../../sites/reticulum.network
PATH_PACKAGES=../../../rns_build
clean:
@echo Cleaning...
@-rm -rf ./build
dirs:
@mkdir -p ./build
@mkdir -p ./build/3d
@mkdir -p ./build/pkg
@mkdir -p ./build/css
@mkdir -p ./build/gfx
@mkdir -p ./build/images
pages:
python3 ./build.py
pages-debug:
python3 ./build.py --no-gz --no-remap
sourcepack:
@echo Packing firmware sources...
cd .. && zip -r Console/build/pkg/rnode_firmware.zip * -x Builds/\* Console/\* Documentation/images/\* Documentation/RNode_v1_Manual.pdf Documentation/rnfw_1.jpg Graphics/\* Python\ Module/\* Release/\* build/\* partition_hashes
data:
@echo Including assets...
@cp assets/css/* build/css/
@cp assets/gfx/* build/gfx/
@cp assets/images/* build/images/
@cp assets/stl/* build/3d/
# @cp assets/pkg/* build/pkg/
# @cp assets/scripts/* build/scripts/
# @cp -r ../../Reticulum/docs/manual/* build/reticulum_manual/
# @cp -r ../../Reticulum/docs/Reticulum\ Manual.pdf build/reticulum_manual/
external:
make -C $(PATH_RETICULUM_WEBSITE) clean website
-rm -r $(PATH_PACKAGES)/reticulum.network
cp -r $(PATH_RETICULUM_WEBSITE)/build $(PATH_PACKAGES)/reticulum.network
site: clean external dirs data sourcepack pages
local: clean external dirs data sourcepack pages-debug
serve:
python3 -m http.server 7777 --bind 127.0.0.1 --directory ./build