do not ignore build failures in subdirs of iproute2

if a file fails to compile in a subdir of iproute2 fails (say "tunnel.c" in
the "ip" dir), the top level makefile does not abort:
 all: Config
    @for i in $(SUBDIRS); \
    do $(MAKE) $(MFLAGS) -C $$i; done

the attached patch inserts a 'set -e' so that if the $(MAKE) fails, the all
target fails as well
-mike
This commit is contained in:
Mike Frysinger 2007-03-05 17:50:49 -08:00 committed by Stephen Hemminger
parent 892db6942a
commit 95dd595049
2 changed files with 5 additions and 19 deletions

View File

@ -32,7 +32,8 @@ SUBDIRS=lib ip tc misc netem genl
LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
all: Config
@for i in $(SUBDIRS); \
@set -e; \
for i in $(SUBDIRS); \
do $(MAKE) $(MFLAGS) -C $$i; done
Config:

View File

@ -36,24 +36,9 @@
#include <fcntl.h>
#include <sys/wait.h>
const char *pname = "tc-ipt";
const char *tname = "mangle";
const char *pversion = "0.1";
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef IPT_LIB_DIR
#define IPT_LIB_DIR "/usr/local/lib/iptables"
#endif
#ifndef PROC_SYS_MODPROBE
#define PROC_SYS_MODPROBE "/proc/sys/kernel/modprobe"
#endif
static const char *pname = "tc-ipt";
static const char *tname = "mangle";
static const char *pversion = "0.1";
static const char *ipthooks[] = {
"NF_IP_PRE_ROUTING",