nothing to be done reload

This commit is contained in:
Gu://em_ 2025-12-18 13:17:48 +01:00
parent 7acbfd6c9f
commit bb1591a96a
3 changed files with 14 additions and 1 deletions

View file

@ -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

View file

@ -0,0 +1 @@
empty_target:

View file

@ -0,0 +1,4 @@
V=2
main:
echo $V