- @rm -rf $(DIR_APP) $(DIR_SRC)/e2fsprogs-build && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-ifeq "$(LFS_PASS)" "install"
- cd $(DIR_APP) && CFLAGS="-Os -fomit-frame-pointer" ./configure --host=$(BUILDTARGET) --disable-nls \
- --prefix=/opt/$(MACHINE)-uClibc
-
- # build 'mke2fs 1.39' to override version used in busybox.
- # To be removed when busybox will use also e2fsprogs 1.39
- # remove link installed by busybox
- rm /install/initrd/bin/mke2fs
- cd $(DIR_APP) && make install-libs
- cd $(DIR_APP) && make progs
- cd $(DIR_APP)/misc && install -m 755 mke2fs /install/initrd/bin
-
- cd $(DIR_APP)/lib/uuid && make
- cd $(DIR_APP)/lib/uuid && make install
- cd $(DIR_APP)/lib/uuid && install -m 755 libuuid.a /opt/$(MACHINE)-uClibc/lib/libuuid.a
- cd $(DIR_APP) && unset LD_LIBRARY_PATH
-else
- cd $(DIR_SRC) && mkdir build
- cd $(DIR_SRC)/build && $(DIR_APP)/configure --prefix=/usr --with-root-prefix="" \
- --enable-elf-shlibs --disable-evms --disable-nls
- cd $(DIR_SRC)/build && make $(MAKETUNING)
- cd $(DIR_SRC)/build && make install
- cd $(DIR_SRC)/build && make install-libs
-endif
- @rm -rf $(DIR_APP) $(DIR_SRC)/e2fsprogs-build
+ @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+ -mkdir -pv $(DIR_APP)/build
+ cd $(DIR_APP)/build && \
+ $(DIR_APP)/configure \
+ --prefix=/usr \
+ --with-root-prefix="" \
+ --enable-elf-shlibs \
+ --disable-nls
+
+ cd $(DIR_APP)/build && make $(MAKETUNING)
+ cd $(DIR_APP)/build && make install
+ cd $(DIR_APP)/build && make install-libs
+ chmod -v u+w /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a
+ @rm -rf $(DIR_APP)