nothing to be done reload
This commit is contained in:
parent
7acbfd6c9f
commit
bb1591a96a
3 changed files with 14 additions and 1 deletions
|
|
@ -469,7 +469,8 @@ static int run_rule(struct rule *rule)
|
|||
// Build dependencies
|
||||
while (dependencies != NULL)
|
||||
{
|
||||
// Expand variables
|
||||
// Expand variable
|
||||
// TODO
|
||||
|
||||
// Check file existence
|
||||
if (!file_exists(dependencies->data))
|
||||
|
|
@ -492,6 +493,13 @@ static int run_rule(struct rule *rule)
|
|||
dependencies = dependencies->next;
|
||||
}
|
||||
|
||||
// Empty recipe
|
||||
if (commands == NULL)
|
||||
{
|
||||
printf("%s: Nothing to be done for '%s'.\n", program_name, rule->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
while (commands != NULL)
|
||||
{
|
||||
// Expand command variables
|
||||
|
|
|
|||
1
minimake/tests/Makefile.empty
Normal file
1
minimake/tests/Makefile.empty
Normal file
|
|
@ -0,0 +1 @@
|
|||
empty_target:
|
||||
4
minimake/tests/Makefile.vars
Normal file
4
minimake/tests/Makefile.vars
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
V=2
|
||||
|
||||
main:
|
||||
echo $V
|
||||
Loading…
Add table
Add a link
Reference in a new issue