🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Daniel I. Rosenblatt Wed, 02 Sep 1992 02:43
make 3.62 problem
#715
Author: Daniel I. Rosenblatt
Date: Wed, 02 Sep 1992 02:43
19 lines
1366 bytes
I've run across a problem with GNU make and Imake.
The command sequence in imake is (typical for imake with sub-directories):
	for i in list_of_directories ;\
	do \
	    (cd $$i ; echo Making all in $$i ...; \
	    $(MAKE) $(MFLAGS) all ); \
	done
This command sequence is executed via '/bin/sh -c command_sequence'.
The problem is that if a non-last (from list_of_directories) sub-make
aborts with an error, the sub-make reports the error but the 1st level
make does not quit.  The fix is to pass the -e flag to the shell which
says 'exit immediately if a command exits with a nonzero exit status'.
This additional flag to the shell should probably be optional based on
-k being given to make (-k given to make should imply no -e to the shell).

Note that Sun's version of make does pass -e to the shell, though I
haven't verified that passing -k to make turns off -e to the shell.

Dan Rosenblatt
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads