bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55025: Automake should allow one to enable POSIX make behavior


From: Vincent Lefevre
Subject: bug#55025: Automake should allow one to enable POSIX make behavior
Date: Tue, 19 Apr 2022 17:33:48 +0200
User-agent: Mutt/2.2.3+10 (6e7437c4) vl-138565 (2022-04-12)

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.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]