# HG changeset patch # User nenolod # Date 1143233465 28800 # Node ID c7dca48d81785afaeac349e22426b86b7b9b908d # Parent 3e2375d5d2168893d2b0111d74b70133a1fa959c [svn] - properly recurse build errors diff -r 3e2375d5d216 -r c7dca48d8178 mk/objective.mk --- a/mk/objective.mk Fri Mar 24 11:04:06 2006 -0800 +++ b/mk/objective.mk Fri Mar 24 12:51:05 2006 -0800 @@ -28,7 +28,7 @@ @if test "$(SUBDIRS)" != "none"; then \ for i in $(SUBDIRS); do \ echo "[installing subobjective: $$i]"; \ - (cd $$i; $(MAKE) install || exit -1; cd ..); \ + (cd $$i; $(MAKE) install || exit; cd ..); \ done; \ fi @if test "$(OBJECTIVE_DIRECTORIES)" != "none"; then \ @@ -74,7 +74,7 @@ @if test "$(SUBDIRS)" != "none"; then \ for i in $(SUBDIRS); do \ echo "[cleaning subobjective: $$i]"; \ - (cd $$i; $(MAKE) clean || exit -1; cd ..); \ + (cd $$i; $(MAKE) clean || exit; cd ..); \ done; \ fi $(MAKE) clean-posthook @@ -85,7 +85,7 @@ @if test "$(SUBDIRS)" != "none"; then \ for i in $(SUBDIRS); do \ echo "[distcleaning subobjective: $$i]"; \ - (cd $$i; $(MAKE) distclean || exit -1; cd ..); \ + (cd $$i; $(MAKE) distclean || exit; cd ..); \ echo "[distcleaning subobjective: $$i]"; \ done; \ fi @@ -101,28 +101,28 @@ @if test "$(SUBDIRS)" != "none"; then \ for i in $(SUBDIRS); do \ echo "[building subobjective: $$i]"; \ - (cd $$i; $(MAKE) || exit -1; cd ..); \ + (cd $$i; $(MAKE) || exit; cd ..); \ echo "[finished subobjective: $$i]"; \ done; \ fi @if test "$(OBJECTIVE_LIBS)" != "none"; then \ for i in $(OBJECTIVE_LIBS); do \ echo "[building library objective: $$i]"; \ - $(MAKE) $$i || exit -1; \ + $(MAKE) $$i || exit; \ echo "[finished library objective: $$i]"; \ done; \ fi @if test "$(OBJECTIVE_LIBS_NOINST)" != "none"; then \ for i in $(OBJECTIVE_LIBS_NOINST); do \ echo "[building library dependency: $$i]"; \ - $(MAKE) $$i || exit -1; \ + $(MAKE) $$i || exit; \ echo "[finished library dependency: $$i]"; \ done; \ fi @if test "$(OBJECTIVE_BINS)" != "none"; then \ for i in $(OBJECTIVE_BINS); do \ echo "[building binary objective: $$i]"; \ - $(MAKE) $$i || exit -1; \ + $(MAKE) $$i || exit; \ echo "[finished binary objective: $$i]"; \ done; \ fi @@ -147,21 +147,21 @@ %.so: $(OBJECTS) if test "x$(OBJECTS)" != "x"; then \ - $(MAKE) $(OBJECTS) || exit -1; \ + $(MAKE) $(OBJECTS) || exit; \ printf "%10s %-20s\n" LINK $@; \ $(CC) -fPIC -DPIC -shared -o $@ -Wl,-soname=$@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ fi %.a: $(OBJECTS) if test "x$(OBJECTS)" != "x"; then \ - $(MAKE) $(OBJECTS) || exit -1; \ + $(MAKE) $(OBJECTS) || exit; \ printf "%10s %-20s\n" LINK $@; \ $(AR) cq $@ $(OBJECTS); \ fi $(OBJECTIVE_BINS): $(OBJECTS) if test "x$(OBJECTS)" != "x"; then \ - $(MAKE) $(OBJECTS) || exit -1; \ + $(MAKE) $(OBJECTS) || exit; \ printf "%10s %-20s\n" LINK $@; \ $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ fi