Reticulum/Makefile

92 lines
2.2 KiB
Makefile
Raw Permalink Normal View History

2021-12-01 19:23:19 +01:00
all: release
2022-06-09 10:31:48 +02:00
test:
@echo Running tests...
2024-09-03 01:57:07 -04:00
python3 -m tests.all
2022-06-09 10:31:48 +02:00
2021-12-01 19:23:19 +01:00
clean:
@echo Cleaning...
2022-06-10 12:54:12 +02:00
@-rm -rf ./build
@-rm -rf ./dist
2022-06-14 13:45:48 +02:00
@-rm -rf ./*.data
2022-06-10 12:54:12 +02:00
@-rm -rf ./__pycache__
@-rm -rf ./RNS/__pycache__
@-rm -rf ./RNS/Cryptography/__pycache__
@-rm -rf ./RNS/Cryptography/aes/__pycache__
@-rm -rf ./RNS/Cryptography/pure25519/__pycache__
@-rm -rf ./RNS/Interfaces/__pycache__
@-rm -rf ./RNS/Utilities/__pycache__
@-rm -rf ./RNS/vendor/__pycache__
@-rm -rf ./RNS/vendor/i2plib/__pycache__
@-rm -rf ./tests/__pycache__
@-rm -rf ./tests/rnsconfig/storage
@-rm -rf ./*.egg-info
2022-09-30 13:09:10 +02:00
@make -C docs clean
2022-06-10 12:54:12 +02:00
@echo Done
2021-12-01 19:23:19 +01:00
2025-04-08 14:36:59 +02:00
purge_docs:
@echo Purging documentation build...
@-rm -rf ./docs/manual
2026-05-06 19:25:28 +02:00
@-rm -rf ./docs/markdown
2025-04-08 14:36:59 +02:00
@-rm -rf ./docs/*.pdf
@-rm -rf ./docs/*.epub
2021-12-01 19:23:19 +01:00
remove_symlinks:
@echo Removing symlinks for build...
-rm Examples/RNS
-rm RNS/Utilities/RNS
create_symlinks:
@echo Creating symlinks...
-ln -s ../RNS ./Examples/
-ln -s ../../RNS ./RNS/Utilities/
2025-04-08 14:36:59 +02:00
build_sdist: purge_docs
2022-06-10 12:46:20 +02:00
python3 setup.py sdist
2021-12-01 19:23:19 +01:00
build_wheel:
2025-04-08 14:36:59 +02:00
python3 setup.py bdist_wheel
2021-12-01 19:23:19 +01:00
2022-06-10 12:46:20 +02:00
build_pure_wheel:
2025-04-08 14:36:59 +02:00
python3 setup.py bdist_wheel --pure
2022-06-10 12:46:20 +02:00
2022-06-22 10:08:27 +02:00
documentation:
2026-05-06 19:25:28 +02:00
make -C docs html markdown
2022-06-22 10:08:27 +02:00
2022-06-22 10:12:05 +02:00
manual:
make -C docs latexpdf epub
2022-06-22 10:12:05 +02:00
2026-05-18 13:45:40 +02:00
distcollect:
2026-05-29 09:29:19 +02:00
mv docs/Reticulum\ Manual.* dist
2026-05-18 13:45:40 +02:00
2025-11-27 22:18:39 +01:00
build_spkg: remove_symlinks build_sdist create_symlinks
2026-05-18 13:45:40 +02:00
release: test remove_symlinks build_sdist build_wheel build_pure_wheel documentation manual distcollect create_symlinks
2021-12-01 19:23:19 +01:00
2022-09-06 19:42:50 +02:00
debug: remove_symlinks build_wheel build_pure_wheel create_symlinks
2026-05-18 13:45:40 +02:00
local: release sign
sign:
rngit release rns://7649a50d84610232d1416b41d2896aff/reticulum/reticulum create $$(python setup.py --getversion):dist --name rns --local
upload:
@echo Ready to publish release over Reticulum
@read VOID
rngit release rns://7649a50d84610232d1416b41d2896aff/reticulum/reticulum create $$(python setup.py --getversion):dist --name rns
upload-pip: upload-rns-pip upload-rnspure-pip
2026-04-21 17:10:27 +02:00
2026-05-18 13:45:40 +02:00
upload-rns-pip:
2026-04-21 17:10:27 +02:00
@echo Ready to publish rns release, hit enter to continue
2022-06-10 12:46:20 +02:00
@read VOID
2021-12-01 19:23:19 +01:00
@echo Uploading to PyPi...
2026-04-21 17:10:27 +02:00
twine upload dist/rns-*.whl dist/rns-*.tar.gz
2022-06-10 12:46:20 +02:00
@echo Release published
2026-04-21 17:10:27 +02:00
2026-05-18 13:45:40 +02:00
upload-rnspure-pip:
2026-04-21 17:10:27 +02:00
@echo Ready to publish rnspure release, hit enter to continue
@read VOID
@echo Uploading to PyPi...
twine upload dist/rnspure-*.whl
@echo Release published