← Back to team overview

kicad-developers team mailing list archive

dont-hide-make-failure.patch

 

This is an old problem: if there was a build error in a subdirectory,
"make" happily continues and the error is easily overlooked.

This patch propagates errors from subdirectories.

- Werner

---------------------------------- cut here -----------------------------------

Index: kicad/makefile.gtk
===================================================================
--- kicad.orig/makefile.gtk	2009-04-28 17:15:16.000000000 -0300
+++ kicad/makefile.gtk	2009-04-28 17:15:34.000000000 -0300
@@ -7,27 +7,27 @@

all:
@for dir in $(KICAD_SUBDIRS); do \
-	$(MAKEGTK) -C $$dir; \
+	$(MAKEGTK) -C $$dir || exit 1; \
done

deps:
@for dir in $(KICAD_SUBDIRS); do \
-	$(MAKEGTK) -k -C $$dir deps; \
+	$(MAKEGTK) -k -C $$dir deps || exit 1; \
done

install-bin:
@for dir in $(KICAD_SUBDIRS_BIN); do \
-	$(MAKEGTK) -C $$dir install; \
+	$(MAKEGTK) -C $$dir install || exit 1; \
done

install-res:
@for dir in $(KICAD_SUBDIRS_RES); do \
-	$(MAKE) -C $$dir install; \
+	$(MAKE) -C $$dir install || exit 1; \
done

install-help:
@for dir in $(KICAD_SUBDIRS_HELP); do \
-	$(MAKE) -C $$dir install; \
+	$(MAKE) -C $$dir install || exit 1; \
done

install: install-bin install-res install-help