You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB
Makefile

4 months ago
PREFIX=/usr/local
4 months ago
PYTHON_EXE_MSYS=${PREFIX}/bin/python3.sh
PIP_EXE_MSYS=${PREFIX}/bin/pip3.sh
3 months ago
PYTHON_MINOR=`python3 --version 2>&1 | sed -e 's@^.* @@' -e 's@\.[0-9]*$$@@'`
4 months ago
LOCAL_DOCTEST=${PREFIX}/bin/toxcore_run_doctest3.bash
DOCTEST=${LOCAL_DOCTEST}
MOD=exclude_badExits
3 months ago
all:: README.md exclude_badExits.hlp
exclude_badExits.hlp:: src/exclude_badExits/__main__.py
PYTHONPATH=${PWD}/src \
${PYTHON_EXE_MSYS} -m exclude_badExits --help > exclude_badExits.hlp
README.md:: src/exclude_badExits/__main__.py
PYTHONPATH=${PWD}/src \
${PYTHON_EXE_MSYS} -c 'from exclude_badExits.__main__ import __doc__; print(__doc__)' \
> README.md
4 months ago
check::
3 months ago
sh ${PYTHON_EXE_MSYS} -c "import ${MOD}"
4 months ago
lint::
sh .pylint.sh
install::
3 months ago
${PIP_EXE_MSYS} --python ${PYTHON_EXE_MSYS} install \
3 months ago
--no-deps \
3 months ago
--target ${PREFIX}/lib/python${PYTHON_MINOR}/site-packages/ \
--upgrade .
3 months ago
sed -i -e "1s@/usr/bin/python${PYTHON_MINOR}@${PYTHON_EXE_MSYS}@" \
${PREFIX}/lib/python${PYTHON_MINOR}/site-packages/bin/*
4 months ago
rsync::
bash .rsync.sh
4 months ago
test::
env PYTHONPATH=${PWD}/src ${PYTHON_EXE_MSYS} ${PWD}/src/${MOD}/exclude_badExits.py --help
env PYTHONPATH=${PWD}/src TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/torcontactinfo.py
4 months ago
4 months ago
doctest::
4 months ago
env PYTHONPATH=${PWD}/src ${DOCTEST} ${MOD}.txt
4 months ago
4 months ago
veryclean:: clean
4 months ago
rm -rf build dist src/exclude_badExits.egg-info/
4 months ago
4 months ago
clean::
find * -name \*~ -delete