Bug #2 If a sub-make fails, then the build will still happily continue. I
authorKeith Packard <keithp@keithp.com>
Tue, 28 Jan 2003 20:56:18 +0000 (20:56 +0000)
committerKeith Packard <keithp@keithp.com>
Tue, 28 Jan 2003 20:56:18 +0000 (20:56 +0000)
    will attach a patch I have been using in the Debian package for a
    while.

Makefile.in

index bfb24c8..69ea96c 100644 (file)
@@ -29,7 +29,7 @@ include $(TOPDIR)/config/Makedefs
 DIRS          = src fc-cache fc-list fontconfig
 
 all install clean::
-       for d in $(DIRS); do (cd $$d && $(MAKE) $@); done
+       for d in $(DIRS); do (cd $$d && $(MAKE) $@) || exit 1; done
 
 #
 # create fonts.conf file