aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-28 00:04:53 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-07 09:45:04 +0100
commit3044d0efee9136c19dfdcf6dcdf957e910a73fd5 (patch)
tree68d6e4cee2f2befe8e21078853637a3e3b68d453
parenta52b9464e4238b41484daecd60c6dc77115e2676 (diff)
downloadffmpeg-3044d0efee9136c19dfdcf6dcdf957e910a73fd5.tar.gz
ffbuild/common: Make deletion of templates possible
If a target to be built includes a template file, the target's .d file includes the template file as a prerequisite; if the code were changed so that the template file no longer exists, one would get an error from make that it has no rule for the template file target. Therefore add a dummy rule for template files to make deleting them possible. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--ffbuild/common.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffbuild/common.mak b/ffbuild/common.mak
index 13e13553b8..e070b6b5e2 100644
--- a/ffbuild/common.mak
+++ b/ffbuild/common.mak
@@ -107,7 +107,7 @@ COMPILE_MSA = $(call COMPILE,CC,MSAFLAGS)
%.c %.h %.pc %.ver %.version: TAG = GEN
# Dummy rule to stop make trying to rebuild removed or renamed headers
-%.h:
+%.h %_template.c:
@:
# Disable suffix rules. Most of the builtin rules are suffix rules,