On 19 Apr 2022 17:33, Vincent Lefevre wrote: > https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html > says about the target rules: > > .POSIX > The application shall ensure that this special target is specified > without prerequisites or commands. If it appears as the first > non-comment line in the makefile, /make/ shall process the makefile > as specified by this section; otherwise, the behavior of /make/ is > unspecified. > > But even though one may add a .POSIX target as the first non-comment > line in one's Makefile.am file, Automake will add various non-comment > lines before this target in the generated Makefile. I received a > remark about that for GNU MPFR. Though GNU make does not require > this target to be the first non-comment line, this may matter with > other make implementations. > > This could be done either by detecting a .POSIX target in Makefile.am > or with some AM_* macro in the configure.ac file.
any reason we don't just define it ourselves unconditionally ? seems like the whole point of Automake is for devs to not worry about these kind of nitty details. -mike --- a/lib/am/header-vars.am +++ b/lib/am/header-vars.am @@ -14,6 +14,8 @@ ## You should have received a copy of the GNU General Public License ## along with this program. If not, see <https://www.gnu.org/licenses/>. +.POSIX: + VPATH = @srcdir@ @SET_MAKE@
signature.asc
Description: PGP signature