From a97024f7c64949aa4145a34d8b96a2cab1a3dbce Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Mon, 16 Jun 2003 20:08:15 +0000 Subject: [PATCH] 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. --- usr.sbin/config/mkmakefile.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index a3bfbdb44a9c..ce83942bda70 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -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;