Commit Graph

6 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
17fb9526b1 Avoid a space before a tab in a comment
This change avoids a false positive when looking for bad indentations.

Moreover:
Replace the deprecated 'egrep' variant by 'grep -E'.

[skip ci]
2023-02-15 09:59:37 +01:00
Denis Ovsienko
8238d6c139 Remove awk code from mkdep. [skip appveyor]
It seems possible that some old make implementations could have low
limits on the number and line length of Makefile rules, which would
explain the need for the awk code in mkdep in 1988.

That said, many still-used copies and derivatives of mkdep do not have
the awk code, which hints that either the problem no longer exists or
the workarounds have since settled elsewhere: most compilers that
Autoconf cares to use for dependency generation (GCC, Clang and XL C
16.1) produce dependency rules with long lines already nicely wrapped,
and even though SunStudio 11 produces plenty of short lines, the result
does not affect make on Solaris 9.

Since the only practical effect of the awk code seems to be a bug that
sometimes manifests in edge cases as explained in GH pull request #651,
instead of using a more complicated awk script (as in OpenLDAP) drop it
altogether (as in GCC) and presume the only practical effect to be
elimination of the bug unless proven otherwise.
2022-07-08 20:22:52 +01:00
Guy Harris
f763b30f67 Fix "make depend" for out-of-tree builds.
Have mkdep take a -s argument, giving the source directory, and have it
prepend that directory to all source files before running them through
the compiler's make-dependencies operation.
2020-03-02 15:23:13 -08:00
Francois-Xavier Le Bail
34aef54e27 mkdep: It uses now the build environment PATH 2015-01-18 12:22:47 +01:00
Guy Harris
122e1529b7 Support dependency generation with some non-GCC compilers.
Also, if we don't support it with a given compiler, have "make depend"
not run mkdep, as it won't do anything useful.
2013-05-08 00:08:12 -07:00
mcr
f555c163f9 Initial revision 1999-10-07 23:47:09 +00:00