Skip to content

Commit 3deef0a

Browse files
author
Kevin Pyle
committed
Fix make warning for autogenerated-casts.c override
Use $(filter-out) to eliminate autogenerated-casts.c from the general recipe, so that make does not warn when it encounters a specific recipe for autogenerated-casts.c.
1 parent 74299d8 commit 3deef0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ autogenerated-casts.h: autogenerated-casts.c
195195

196196
# Generate to a temporary name, so that a failure in the script does not
197197
# leave behind an up-to-date incomplete file.
198-
$(PLUGIN_GENERATED_SOURCE_FILES): autogenerated-%.c: $(addprefix $(srcdir),generate-%-c.py $(GENERATOR_DEPS))
198+
$(filter-out autogenerated-casts.c,$(PLUGIN_GENERATED_SOURCE_FILES)): autogenerated-%.c: $(addprefix $(srcdir),generate-%-c.py $(GENERATOR_DEPS))
199199
$(PYTHON) $< > "$@.part" || { rc=$$?; $(RM) "$@.part"; exit $$rc; }
200200
mv -f "$@.part" "$@"
201201

0 commit comments

Comments
 (0)