Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (39 loc) · 1.75 KB
/
Copy pathMakefile
File metadata and controls
50 lines (39 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Generated by Praetor from declared project commands; execution is unverified.
# Praetor ships one binary under two names; resolve whichever is installed.
-include .config/praetor/engine.mk
PRAETORCTL ?= $(shell command -v praetorctl 2>/dev/null || command -v standardsctl 2>/dev/null || echo praetorctl)
.PHONY: all verify-all compile-context compile-context-verify caveman-sources audit build test lint apply dist
all: build
verify-all: compile-context-verify caveman-sources audit test
compile-context:
@$(PRAETORCTL) compile-context
compile-context-verify:
@$(PRAETORCTL) compile-context --verify
caveman-sources:
@$(PRAETORCTL) caveman check --configured-sources
audit:
@$(PRAETORCTL) audit
# The repository builds nothing: "build" lints the series and its metadata.
build:
@python3 scripts/series.py check
test: build lint
@python3 -m unittest discover -s tests
lint:
@ruff check scripts tests
@ruff format --check scripts tests
@reuse lint --quiet
# Apply the series onto a clean FFmpeg checkout at the pinned base:
# make apply FFMPEG_TREE=/path/to/ffmpeg
apply:
@test -n "$(FFMPEG_TREE)" || { echo 'set FFMPEG_TREE to an FFmpeg checkout' >&2; exit 1; }
@python3 scripts/series.py apply --expect-base "$(FFMPEG_TREE)"
# Release tarball of the committed series, the same bytes for the same commit:
# make dist VERSION=v1.0.0
DIST_FILES = base.env series.txt patches scripts/series.py upstream-contributions.json \
LICENSE LICENSES README.md REUSE.toml
dist:
@test -n "$(VERSION)" || { echo 'set VERSION to the release tag, e.g. VERSION=v1.0.0' >&2; exit 1; }
@mkdir -p dist
@git archive --format=tar --prefix=ffmpeg-patches-$(VERSION)/ HEAD $(DIST_FILES) \
| gzip -n -9 > dist/ffmpeg-patches-$(VERSION).tar.gz
@echo dist/ffmpeg-patches-$(VERSION).tar.gz