2023-01-13 01:12:20 +01:00
|
|
|
PATH_RETICULUM_WEBSITE=../../sites/reticulum.network
|
|
|
|
PATH_PACKAGES=../../dist_archive
|
|
|
|
|
2023-01-07 19:15:41 +01:00
|
|
|
clean:
|
2023-01-07 23:32:07 +01:00
|
|
|
@echo Cleaning...
|
|
|
|
@-rm -rf ./build
|
2023-01-07 19:15:41 +01:00
|
|
|
|
2023-01-12 18:08:10 +01:00
|
|
|
dirs:
|
2023-01-07 23:32:07 +01:00
|
|
|
@mkdir -p ./build
|
2023-01-13 01:43:47 +01:00
|
|
|
@mkdir -p ./build/3d
|
|
|
|
@mkdir -p ./build/pkg
|
2023-01-07 23:32:07 +01:00
|
|
|
@mkdir -p ./build/css
|
|
|
|
@mkdir -p ./build/gfx
|
|
|
|
@mkdir -p ./build/images
|
2023-01-12 18:08:10 +01:00
|
|
|
|
|
|
|
pages:
|
2024-09-11 22:01:51 +02:00
|
|
|
python3 ./build.py
|
2023-01-12 18:08:10 +01:00
|
|
|
|
|
|
|
pages-debug:
|
2024-09-11 22:01:51 +02:00
|
|
|
python3 ./build.py --no-gz --no-remap
|
2023-01-13 23:13:09 +01:00
|
|
|
|
|
|
|
sourcepack:
|
|
|
|
@echo Packing firmware sources...
|
2024-06-10 15:20:58 +02:00
|
|
|
zip --junk-paths -r build/pkg/rnode_firmware.zip ../arduino-cli.yaml ../Bluetooth.h ../Boards.h ../Config.h ../Console.h ../Device.h ../Display.h ../Framing.h ../Graphics.h ../Input.h ../LICENSE ../Makefile ../MD5.cpp ../MD5.h ../Modem.h ../partition_hashes ../Power.h ../README.md ../release_hashes.py ../RNode_Firmware_CE.ino ../ROM.h ../sx126x.cpp ../sx126x.h ../sx127x.cpp ../sx127x.h ../sx128x.cpp ../sx128x.h ../Utilities.h
|
2023-01-12 18:08:10 +01:00
|
|
|
|
|
|
|
data:
|
|
|
|
@echo Including assets...
|
2023-01-07 23:32:07 +01:00
|
|
|
@cp assets/css/* build/css/
|
|
|
|
@cp assets/gfx/* build/gfx/
|
2023-01-13 01:12:20 +01:00
|
|
|
@cp assets/images/* build/images/
|
2023-01-13 23:13:09 +01:00
|
|
|
@cp assets/stl/* build/3d/
|
2024-01-21 12:32:57 +01:00
|
|
|
#@cp assets/pkg/* build/pkg/
|
2023-01-07 23:32:07 +01:00
|
|
|
# @cp assets/scripts/* build/scripts/
|
|
|
|
# @cp -r ../../Reticulum/docs/manual/* build/reticulum_manual/
|
|
|
|
# @cp -r ../../Reticulum/docs/Reticulum\ Manual.pdf build/reticulum_manual/
|
2023-01-12 18:08:10 +01:00
|
|
|
|
2023-01-13 01:12:20 +01:00
|
|
|
external:
|
|
|
|
make -C $(PATH_RETICULUM_WEBSITE) clean website
|
2023-02-18 12:09:21 +01:00
|
|
|
-rm -r $(PATH_PACKAGES)/reticulum.network
|
2023-01-13 01:12:20 +01:00
|
|
|
cp -r $(PATH_RETICULUM_WEBSITE)/build $(PATH_PACKAGES)/reticulum.network
|
|
|
|
|
2023-01-13 23:13:09 +01:00
|
|
|
site: clean external dirs data sourcepack pages
|
2023-01-12 18:08:10 +01:00
|
|
|
|
2023-01-13 23:13:09 +01:00
|
|
|
local: clean external dirs data sourcepack pages-debug
|
2023-01-12 18:08:10 +01:00
|
|
|
|
|
|
|
serve:
|
2024-09-11 22:01:51 +02:00
|
|
|
python3 -m http.server 7777 --bind 127.0.0.1 --directory ./build
|