Fix e2fsprogs-libs build failure due to 'subs' target

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>
bitmap-optimize
Theodore Ts'o 2008-09-01 17:59:01 -04:00
parent 31d6487812
commit 60b30dbaa6
1 changed files with 4 additions and 3 deletions

View 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