Skip to content
Snippets Groups Projects
Commit 95970138 authored by Stefan Anzinger's avatar Stefan Anzinger
Browse files

Report errors during build when make is called in a shell for-loop

parent a76699a5
Branches
No related tags found
No related merge requests found
#
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
......@@ -30,14 +30,14 @@ all: libdir make_subdirs
make_subdirs:
for dir in $(SUBDIRS); do \
$(MAKE) PACKAGE=$$dir -C $$dir; \
$(MAKE) PACKAGE=$$dir -C $$dir || exit 1; \
done
clean: clean_subdirs
clean_subdirs:
for dir in $(SUBDIRS); do \
$(MAKE) PACKAGE=$$dir -C $$dir clean; \
$(MAKE) PACKAGE=$$dir -C $$dir clean || exit 1; \
done
libdir:
......
#
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
......@@ -29,13 +29,13 @@ all: make_subdirs
make_subdirs:
for dir in $(SUBDIRS); do \
$(MAKE) PACKAGE=$$dir -C $$dir; \
$(MAKE) PACKAGE=$$dir -C $$dir || exit 1; \
done
clean: clean_subdirs
clean_subdirs:
for dir in $(SUBDIRS); do \
$(MAKE) PACKAGE=$$dir -C $$dir clean; \
$(MAKE) PACKAGE=$$dir -C $$dir clean || exit 1; \
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment