zeek/auxil/btest/Makefile
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

31 lines
627 B
Makefile

VERSION=`cat VERSION`
.PHONY: all
all:
.PHONY: dist
dist:
rm -rf build/*.tar.gz
python3 setup.py sdist -d build
@printf "Package: "; echo build/*.tar.gz
.PHONY: upload
upload: twine-check dist
twine upload -u zeek build/btest-$(VERSION).tar.gz
.PHONY: test
test:
@(cd testing && make)
.PHONY: twine-check
twine-check:
@type twine > /dev/null 2>&1 || \
{ \
echo "Uploading to PyPi requires 'twine' and it's not found in PATH."; \
echo "Install it and/or make sure it is in PATH."; \
echo "E.g. you could use the following command to install it:"; \
echo "\tpip3 install twine"; \
echo ; \
exit 1; \
}