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:
Mark Murray 2003-06-16 20:08:15 +00:00
parent 81cb12571a
commit a97024f7c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116450

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;