From ea8541e932fb0c10bf53ea429da8bb9685a8f4f4 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 23 Nov 2000 12:42:39 +0000 Subject: [PATCH] Abort on errors git-svn-id: svn://svn.cc65.org/cc65/trunk@475 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/Makefile | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/libsrc/Makefile b/libsrc/Makefile index 47b33bc49..3ff1bad4f 100644 --- a/libsrc/Makefile +++ b/libsrc/Makefile @@ -25,7 +25,7 @@ ALLTARGETS = apple2lib \ all: for tgt in $(ALLTARGETS); do \ - $(MAKE) clean $$tgt; \ + $(MAKE) clean $$tgt || exit 1; \ done #----------------------------------------------------------------------------- @@ -33,7 +33,9 @@ all: apple2lib: export CFLAGS="-Osir -g -t apple2 -I../../include";\ - for i in apple2 common runtime conio dbg; do $(MAKE) -C $$i; done + for i in apple2 common runtime conio dbg; do \ + $(MAKE) -C $$i || exit 1; \ + done mv apple2/crt0.o apple2.o for i in apple2 common runtime conio dbg; do \ $(AR) a apple2.lib $$i/*.o;\ @@ -44,7 +46,9 @@ apple2lib: atarilib: export CFLAGS="-Osir -g -t atari -I../../include";\ - for i in atari common runtime conio dbg; do $(MAKE) -C $$i; done + for i in atari common runtime conio dbg; do \ + $(MAKE) -C $$i || exit 1; \ + done mv atari/crt0.o atari.o for i in atari common runtime conio dbg; do \ $(AR) a atari.lib $$i/*.o;\ @@ -55,7 +59,9 @@ atarilib: c64lib: export CFLAGS="-Osir -g -t c64 -I../../include";\ - for i in c64 cbm common runtime conio dbg; do $(MAKE) -C $$i; done + for i in c64 cbm common runtime conio dbg; do \ + $(MAKE) -C $$i || exit 1; \ + done mv c64/crt0.o c64.o for i in c64 cbm common runtime conio dbg; do \ $(AR) a c64.lib $$i/*.o;\ @@ -66,7 +72,9 @@ c64lib: c128lib: export CFLAGS="-Osir -g -t c128 -I../../include";\ - for i in c128 cbm common runtime conio dbg; do $(MAKE) -C $$i; done + for i in c128 cbm common runtime conio dbg; do \ + $(MAKE) -C $$i || exit 1; \ + done mv c128/crt0.o c128.o for i in c128 cbm common runtime conio dbg; do \ $(AR) a c128.lib $$i/*.o;\ @@ -77,7 +85,9 @@ c128lib: cbm610lib: export CFLAGS="-Osir -g -t cbm610 -I../../include";\ - for i in cbm610 cbm common runtime conio dbg; do $(MAKE) -C $$i; done + for i in cbm610 cbm common runtime conio dbg; do \ + $(MAKE) -C $$i || exit 1; \ + done mv cbm610/crt0.o cbm610.o for i in cbm610 cbm common runtime conio dbg; do \ $(AR) a cbm610.lib $$i/*.o;\ @@ -88,7 +98,9 @@ cbm610lib: geoslib: export CFLAGS="-Osir -g -t geos -I../../include";\ - for i in geos common runtime; do $(MAKE) -C $$i; done + for i in geos common runtime; do \ + $(MAKE) -C $$i || exit 1; \ + done for i in common runtime; do \ $(AR) a geos.lib $$i/*.o;\ done @@ -98,7 +110,9 @@ geoslib: petlib: export CFLAGS="-Osir -g -t pet -I../../include";\ - for i in pet cbm common runtime conio dbg; do $(MAKE) -C $$i; done + for i in pet cbm common runtime conio dbg; do \ + $(MAKE) -C $$i || exit 1; \ + done mv pet/crt0.o pet.o for i in pet cbm common runtime conio dbg; do \ $(AR) a pet.lib $$i/*.o;\ @@ -109,7 +123,9 @@ petlib: plus4lib: export CFLAGS="-Osir -g -t plus4 -I../../include";\ - for i in plus4 cbm common runtime conio dbg; do $(MAKE) -C $$i; done + for i in plus4 cbm common runtime conio dbg; do \ + $(MAKE) -C $$i || exit 1; \ + done mv plus4/crt0.o plus4.o for i in plus4 cbm common runtime conio dbg; do \ $(AR) a plus4.lib $$i/*.o;\ -- 2.39.5