From 0536509839864b2c86f53817701e2c68490b5913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingy=20d=C3=B6t=20Net?= Date: Sat, 11 Nov 2023 10:01:48 -0800 Subject: [PATCH] Makefile cleanups --- .gitignore | 2 +- Makefile | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index eb40849a..86fcdd88 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # build outputs -/build/* +/build/ /lib/PyYAML.egg-info/* /.venv/ /wheelhouse/* diff --git a/Makefile b/Makefile index e4ca1ca0..c2ab1e8c 100644 --- a/Makefile +++ b/Makefile @@ -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__/ \ @@ -57,6 +57,5 @@ venv: $(VENV) $(VENV): $(PYTHON) -m venv $@ - @echo $(PATH) pip install pytest pip install -e .