Skip to contentSkip to conversation

2.5.54 Makefile question: set -e

DISCUSSION Mad Hatter 2 participants 2 messages Jan 4, 2003

lore
Share & tools
lore

Mad Hatter

author
#0 lore raw

Hi,

The toplevel Makefile in 2.5.54 has near line 313:

----------------------------
# set -e makes the rule exit immediately on error
#...
attribute if uninitialized.

define rule_vmlinux__
set -e
...
endef
-------------------------

However, the "set -e" does nothing since each line is processed by a different shell according to the make manual.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

#1 lore raw
Quoted 15 lines · Mad Hatter

Hi,

The toplevel Makefile in 2.5.54 has near line 313:

----------------------------
# set -e makes the rule exit immediately on error
#...
attribute if uninitialized.

define rule_vmlinux__
set -e
...
endef
-------------------------

Quoted 3 lines

However, the "set -e" does nothing since each line is processed by a different shell according to the make manual.

The "set -e" seems superflous in this context.
set -e is IIRC only relevant when commands are chined like:

set -e; \
cd $(srctree); \
mkdir somedir; \
do somthing;

Kai?

Sam