Whamcloud - gitweb
Fix e2fsprogs-libs build failure due to 'subs' target
authorTheodore Ts'o <tytso@mit.edu>
Mon, 1 Sep 2008 21:59:01 +0000 (17:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 1 Sep 2008 22:07:59 +0000 (18:07 -0400)
In e2fsprogs-libs the lib/ext2fs directory is not present, and we need
to make sure the top-level Makefile doesn't blow up in it's not there.

Addresses-Sourceforge-Bug: #2087502

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Makefile.in

index b9f7da6..ffb1224 100644 (file)
@@ -26,9 +26,10 @@ all:: subs
        $(MAKE) docs
 
 subs:
-       @for i in $(SUBS) ; do if test -d `dirname $$i` ; then $(MAKE) $$i ; fi ; done
-       @(test -d lib/et && cd lib/et && $(MAKE) compile_et)
-       @(test -d lib/ext2fs && cd lib/ext2fs && $(MAKE) ext2_err.h)
+       @for i in $(SUBS) ; do if test -d `dirname $$i` ; \
+               then $(MAKE) $$i || exit $$? ; fi ; done
+       @(if test -d lib/et ; then cd lib/et && $(MAKE) compile_et; fi)
+       @(if test -d lib/ext2fs ; then cd lib/ext2fs && $(MAKE) ext2_err.h; fi)
 
 progs: subs all-progs-recursive
 libs: subs all-libs-recursive