mirror of
https://github.com/markqvist/LXST
synced 2026-11-22 23:10:31 +00:00
66 lines
1.4 KiB
Makefile
66 lines
1.4 KiB
Makefile
all: release
|
|
|
|
clean:
|
|
@echo Cleaning...
|
|
-rm -rf ./build
|
|
-rm -rf ./dist
|
|
-rm -r ./LXST/__pycache__
|
|
|
|
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:
|
|
cp ./lib/static/* ./LXST/
|
|
touch ./skip_extensions
|
|
python3 setup.py bdist_wheel
|
|
rm ./skip_extensions
|
|
-@(rm ./LXST/*.so)
|
|
-@(rm ./LXST/*.dll)
|
|
|
|
build_sdist:
|
|
cp ./lib/static/* ./LXST/
|
|
touch ./skip_extensions
|
|
python3 setup.py sdist
|
|
rm ./skip_extensions
|
|
-@(rm ./LXST/*.so)
|
|
-@(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
|
|
|
|
native_libs:
|
|
./march_build.sh
|
|
|
|
persist_libs:
|
|
-cp ./lib/dev/*.so ./lib/static/
|
|
-cp ./lib/dev/*.dll ./lib/static/
|
|
|
|
build_spkg: remove_symlinks build_sdist create_symlinks
|
|
|
|
release: remove_symlinks build_wheel create_symlinks
|
|
|
|
upload:
|
|
@echo Ready to publish release over Reticulum
|
|
@read VOID
|
|
rngit release rns://7649a50d84610232d1416b41d2896aff/reticulum/lxst create $$(python setup.py --getversion):dist --name lxst
|
|
|
|
upload-pip:
|
|
@echo Ready to publish release, hit enter to continue
|
|
@read VOID
|
|
@echo Uploading to PyPi...
|
|
twine upload dist/lxst-*.whl
|
|
@echo Release published
|