Skip to content

Commit

Permalink
Use makefile from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed May 7, 2024
1 parent fb805c3 commit d0e7b43
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d0e7b43

Please sign in to comment.