Skip to content

Commit 3044d0e

Browse files
committed
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>
1 parent a52b946 commit 3044d0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ffbuild/common.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ COMPILE_MSA = $(call COMPILE,CC,MSAFLAGS)
107107
%.c %.h %.pc %.ver %.version: TAG = GEN
108108

109109
# Dummy rule to stop make trying to rebuild removed or renamed headers
110-
%.h:
110+
%.h %_template.c:
111111
@:
112112

113113
# Disable suffix rules. Most of the builtin rules are suffix rules,

0 commit comments

Comments
 (0)