Skip to content

Commit c7ef5a0

Browse files
committed
Makefile: switch to POSIX mode to handle errors
> .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. Running the makefile with `.POSIX` runs shells with the `-e` options, which helps with handling errors; without this, make can complet "succesfully", even if shell commands in a target fail. Note that this patch does not change behavior on macOS, which runs an older version of GNU make that does not support these options. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 7f9a733 commit c7ef5a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
.POSIX:
16+
1517
include common/common.mk
1618

1719
BUILD_IMAGE=centos:7

0 commit comments

Comments
 (0)