PR #25112 opened by Kilian (lusoris)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25112
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25112.patch

Since a8968b1425 the `build` and `check` targets depend on `devprogs`, but no 
rule defines that target, so both stop at once:

```
make: *** No rule to make target 'devprogs', needed by 'build'.  Stop.
```

This defines `devprogs` the same way as `testprogs`, from each library's 
`DEVPROGS`, and adds it to `.PHONY`.

Tested on master af25036ac0, configured with `--disable-doc 
--disable-everything --disable-programs`:

- Without the patch, `make build` fails with the error above.
- With the patch, `make devprogs` builds `libswscale/uops_macros_gen`, and 
`make -n build` and `make -n check` resolve all their targets.



>From 56ed2b4feb1f0df5b656d68450674a7c10326244 Mon Sep 17 00:00:00 2001
From: lusoris <[email protected]>
Date: Thu, 15 Oct 2026 23:01:41 +0200
Subject: [PATCH] ffbuild/library.mak: add the devprogs target

Commit a8968b1425 made the build and check targets depend on devprogs,
but no rule defines devprogs, so make build and make check stop with
"No rule to make target 'devprogs'". Define it like testprogs, from
the DEVPROGS of each library, and mark it phony.

Signed-off-by: lusoris <[email protected]>
---
 Makefile            | 2 +-
 ffbuild/library.mak | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b8ecf5be42..93dc74f721 100644
--- a/Makefile
+++ b/Makefile
@@ -234,5 +234,5 @@ $(sort $(OUTDIRS)):
 # so this saves some time on slow systems.
 .SUFFIXES:
 
-.PHONY: all all-yes alltools build check config testprogs
+.PHONY: all all-yes alltools build check config devprogs testprogs
 .PHONY: *clean install* uninstall*
diff --git a/ffbuild/library.mak b/ffbuild/library.mak
index ff91dd795e..7b58c848d9 100644
--- a/ffbuild/library.mak
+++ b/ffbuild/library.mak
@@ -156,3 +156,4 @@ $(TOOLS):     $(DEP_LIBS) 
$(SUBDIR)$($(CONFIG_SHARED:yes=S)LIBNAME)
 $(TESTPROGS) $(DEVPROGS): $(DEP_LIBS) $(SUBDIR)$(LIBNAME)
 
 testprogs: $(TESTPROGS)
+devprogs: $(DEVPROGS)
-- 
2.54.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to