diff options
author | markm <markm@FreeBSD.org> | 2003-06-16 20:08:15 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2003-06-16 20:08:15 +0000 |
commit | bdcc4ca5e8e231237d03c8af56189b1dd2e80172 (patch) | |
tree | fc3dc5c7a7ef53b535c0ba0361d5a0b8f2317aa0 /usr.sbin/config/mkmakefile.c | |
parent | 17751a54cb206751c00bd97187f23c8aba9dc4af (diff) | |
download | FreeBSD-src-bdcc4ca5e8e231237d03c8af56189b1dd2e80172.zip FreeBSD-src-bdcc4ca5e8e231237d03c8af56189b1dd2e80172.tar.gz |
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.
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index a3bfbdb..ce83942 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; |