LXST/Makefile

51 lines
1,006 B
Makefile
Raw Permalink Normal View History

2025-03-11 16:41:15 +01:00
all: release
clean:
@echo Cleaning...
2025-11-24 16:35:53 +01:00
-rm -rf ./build
2025-11-24 15:28:32 +01:00
-rm -rf ./dist
-rm -r ./LXST/__pycache__
2025-03-11 16:41:15 +01:00
remove_symlinks:
@echo Removing symlinks for build...
-rm ./RNS
-rm ./LXST/Utilities/LXST
-rm ./examples/LXST
create_symlinks:
@echo Creating symlinks...
-ln -s ../Reticulum/RNS ./
-ln -s ../../LXST/ ./LXST/Utilities/LXST
-ln -s ../LXST/ ./examples/LXST
build_wheel:
2025-11-24 16:35:53 +01:00
cp ./lib/static/* ./LXST/
touch ./skip_extensions
2025-03-11 16:41:15 +01:00
python3 setup.py sdist bdist_wheel
2025-11-24 16:35:53 +01:00
rm ./skip_extensions
-@(rm ./LXST/*.so)
2025-11-25 21:20:05 +01:00
-@(rm ./LXST/*.dll)
windll:
cl /LD LXST/Filters.c LXST/Filters.def /Fefilterlib.dll
mv ./filterlib.dll ./lib/dev/
rm ./filterlib.exp
rm ./filterlib.lib
rm ./filterlib.obj
2025-11-24 15:28:32 +01:00
native_libs:
./march_build.sh
persist_libs:
2025-11-24 16:35:53 +01:00
-cp ./lib/dev/*.so ./lib/static/
-cp ./lib/dev/*.dll ./lib/static/
2025-03-11 16:41:15 +01:00
release: remove_symlinks build_wheel create_symlinks
upload:
@echo Ready to publish release, hit enter to continue
@read VOID
@echo Uploading to PyPi...
twine upload dist/*
@echo Release published