rSW/Makefile

19 lines
402 B
Makefile
Raw Permalink Normal View History

2022-09-30 12:11:04 +03:00
all: build
2022-09-29 23:46:44 +03:00
build:
# Build Python package
test -d build/ && rm -rf build/ || true
test -d dist/ && rm -rf dist/ || true
test -d *.egg-info/ && rm -rf *.egg-info/ || true
python -m build
2022-09-30 12:11:04 +03:00
rm -rv *.egg-info/
2022-09-29 07:53:42 +03:00
2022-09-29 23:46:44 +03:00
install:
# Install package from built tarball
pip install dist/*.tar.gz
2022-09-29 07:53:42 +03:00
2022-09-30 12:11:04 +03:00
cp:
2022-09-29 23:46:44 +03:00
# Copy package to site downloads dir
mkdir -p docs/static/downloads
cp dist/*.tar.gz docs/static/downloads/