Skip to content

Commit

Permalink
Makefile cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Nov 11, 2023
1 parent 99dcc74 commit 0536509
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,5 +1,5 @@
# build outputs
/build/*
/build/
/lib/PyYAML.egg-info/*
/.venv/
/wheelhouse/*
Expand Down
15 changes: 7 additions & 8 deletions Makefile
Expand Up @@ -22,27 +22,27 @@ o ?=
default:

test: venv
PYYAML_FORCE_LIBYAML=0 pytest
PYYAML_FORCE_LIBYAML=0 pytest $o

test-ext: venv
PYYAML_FORCE_LIBYAML=1 pytest
PYYAML_FORCE_LIBYAML=1 pytest $o

build: venv
${PYTHON} setup.py build ${o}
python setup.py build $o

build-ext: venv
${PYTHON} setup.py --with-libyaml build ${o}
python setup.py --with-libyaml build $o

install: venv
${PYTHON} setup.py install ${o}
python setup.py install $o

installext: venv
${PYTHON} setup.py --with-libyaml install ${o}
python setup.py --with-libyaml install $o

clean:
${PYTHON} setup.py --with-libyaml clean -a
$(RM) -r \
.pytest_cache/ \
build/ \
lib/PyYAML.egg-info/ \
lib/yaml/__pycache__/ \
tests/__pycache__/ \
Expand All @@ -57,6 +57,5 @@ venv: $(VENV)

$(VENV):
$(PYTHON) -m venv $@
@echo $(PATH)
pip install pytest
pip install -e .

0 comments on commit 0536509

Please sign in to comment.