]> git.sesse.net Git - ffmpeg/commitdiff
ffbuild/common: Make deletion of templates possible
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 27 Jan 2021 23:04:53 +0000 (00:04 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 7 Feb 2021 08:45:04 +0000 (09:45 +0100)
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>
ffbuild/common.mak

index 13e13553b8d3dd21352a2d5da7ce161e5ccf6560..e070b6b5e2f1b849bb17a625aae6344ae67d6d96 100644 (file)
@@ -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,