reticulum_website/Makefile

29 lines
640 B
Makefile
Raw Permalink Normal View History

2022-07-01 09:47:15 -04:00
clean:
@echo Cleaning...
@-rm -rf ./build
website:
@mkdir -p ./build
@mkdir -p ./build/css
@mkdir -p ./build/gfx
@mkdir -p ./build/manual
python ./build.py
cp assets/css/* build/css/
cp assets/gfx/* build/gfx/
cp -r ../../Reticulum/docs/manual/* build/manual/
cp -r ../../Reticulum/docs/Reticulum\ Manual.pdf build/manual/
2023-07-09 09:30:58 -04:00
cp -r ../../Reticulum/docs/Reticulum\ Manual.epub build/manual/
2022-07-01 09:47:15 -04:00
2023-07-09 08:45:02 -04:00
docsfolder:
@mkdir -p ./docs
cp -rv ./build/* ./docs/
2023-07-09 09:16:43 -04:00
touch ./docs/.nojekyll
2023-07-09 08:45:02 -04:00
github: website docsfolder
2022-07-01 09:47:15 -04:00
upload:
. ./build.env; \
2023-09-05 07:00:40 -04:00
rsync -rv -e "ssh -p $${DEPLOY_PORT}" build/ $${DEPLOY_TARGET} --delete;
2022-07-01 09:47:15 -04:00
deploy: clean website upload