History

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.

Andreas Rheinhardt committed 5 years ago

Commit 3044d0e1 parent a52b9461 file · +1 −1Browse files

Showing the changes to ffbuild (1 of 1 file). Show all

Unified · Split

ffbuild/common.mak+1−1
@@ -107,7 +107,7 @@ COMPILE_MSA = $(call COMPILE,CC,MSAFLAGS) · 106 unmodified lines
107%.c %.h %.pc %.ver %.version: TAG = GEN107%.c %.h %.pc %.ver %.version: TAG = GEN
108 108
109# Dummy rule to stop make trying to rebuild removed or renamed headers109# Dummy rule to stop make trying to rebuild removed or renamed headers
110%.h:110%.h %_template.c:
111 @:111 @:
112 112
113# Disable suffix rules. Most of the builtin rules are suffix rules,113# Disable suffix rules. Most of the builtin rules are suffix rules,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t