Not particularly pretty hack to generate rules to make .ln files

from .c files. Actually, this is overkill, as the .ln file targets
are assumed from .? (any) files. This is not a problem in practice,
merely a bit untidy, as the linting rules DTRT. See the sys/conf/*
and sys/mk/* files for usage.
This commit is contained in:
markm 2003-06-16 20:08:15 +00:00
parent 17751a54cb
commit bdcc4ca5e8

View File

@ -707,12 +707,20 @@ do_rules(FILE *f)
tail(np), np);
continue;
}
if (ftp->f_depends)
if (ftp->f_depends) {
fprintf(f, "%sln: $S/%s%c %s\n", tail(np),
np, och, ftp->f_depends);
fprintf(f, "\t${NORMAL_LINT}\n\n");
fprintf(f, "%so: $S/%s%c %s\n", tail(np),
np, och, ftp->f_depends);
else
}
else {
fprintf(f, "%sln: $S/%s%c\n", tail(np),
np, och);
fprintf(f, "\t${NORMAL_LINT}\n\n");
fprintf(f, "%so: $S/%s%c\n", tail(np),
np, och);
}
}
tp = tail(np);
compilewith = ftp->f_compilewith;