2023-01-12 17:12:20 -07:00
|
|
|
PATH_RETICULUM_WEBSITE=../../sites/reticulum.network
|
|
|
|
PATH_PACKAGES=../../dist_archive
|
|
|
|
|
2023-01-07 11:15:41 -07:00
|
|
|
clean:
|
2023-01-07 15:32:07 -07:00
|
|
|
@echo Cleaning...
|
|
|
|
@-rm -rf ./build
|
2023-01-07 11:15:41 -07:00
|
|
|
|
2023-01-12 10:08:10 -07:00
|
|
|
dirs:
|
2023-01-07 15:32:07 -07:00
|
|
|
@mkdir -p ./build
|
2023-01-12 17:43:47 -07:00
|
|
|
@mkdir -p ./build/3d
|
|
|
|
@mkdir -p ./build/pkg
|
2023-01-07 15:32:07 -07:00
|
|
|
@mkdir -p ./build/css
|
|
|
|
@mkdir -p ./build/gfx
|
|
|
|
@mkdir -p ./build/images
|
2023-01-12 10:08:10 -07:00
|
|
|
|
|
|
|
pages:
|
2023-01-07 15:32:07 -07:00
|
|
|
python ./build.py
|
2023-01-12 10:08:10 -07:00
|
|
|
|
|
|
|
pages-debug:
|
2023-01-12 17:12:20 -07:00
|
|
|
python ./build.py --no-gz --no-remap
|
2023-01-12 10:08:10 -07:00
|
|
|
|
|
|
|
data:
|
|
|
|
@echo Including assets...
|
2023-01-07 15:32:07 -07:00
|
|
|
@cp assets/css/* build/css/
|
|
|
|
@cp assets/gfx/* build/gfx/
|
2023-01-12 17:12:20 -07:00
|
|
|
@cp assets/images/* build/images/
|
2023-01-07 15:32:07 -07: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 10:08:10 -07:00
|
|
|
|
2023-01-12 17:12:20 -07:00
|
|
|
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 pages
|
2023-01-12 10:08:10 -07:00
|
|
|
|
2023-01-12 17:12:20 -07:00
|
|
|
local: clean external dirs data pages-debug
|
2023-01-12 10:08:10 -07:00
|
|
|
|
|
|
|
serve:
|
|
|
|
python -m http.server 7777 --bind 127.0.0.1 --directory ./build
|