From d0e7b4348ab2f0081eca7fde6d91292c28cca55d Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Tue, 7 May 2024 19:08:56 -0400 Subject: [PATCH] Use makefile from upstream --- Makefile | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 1a7fbc649..f4a8df3d4 100644 --- a/Makefile +++ b/Makefile @@ -4,24 +4,31 @@ CFLAGS ?= "-O0" PYAV_PYTHON ?= python PYTHON := $(PYAV_PYTHON) -.PHONY: default build fate-suite test clean-build clean-src clean test + +.PHONY: default build clean fate-suite lint test + default: build + build: CFLAGS=$(CFLAGS) LDFLAGS=$(LDFLAGS) $(PYTHON) setup.py build_ext --inplace --debug +clean: + - find av -name '*.so' -delete + - rm -rf build + - rm -rf sandbox + - rm -rf src + - make -C docs clean + fate-suite: # Grab ALL of the samples from the ffmpeg site. rsync -vrltLW rsync://fate-suite.ffmpeg.org/fate-suite/ tests/assets/fate-suite/ -test: - $(PYTHON) setup.py test - -clean-build: - - rm -rf build - - find av -name '*.so' -delete +lint: + black --check av examples tests setup.py + flake8 av examples tests + isort --check-only --diff av examples tests + mypy av tests -clean-src: - - rm -rf src - -clean: clean-build clean-src +test: + $(PYTHON) setup.py test \ No newline at end of file