- @rm -rf $(DIR_APP) $(DIR_SRC)/e2fsprogs-build && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-ifeq "$(PASS)" "install"
- cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-install.patch
- -mkdir -p /install/misc/bin
- cd $(DIR_APP) && CFLAGS="-Os -fomit-frame-pointer" ./configure --disable-nls
- cd $(DIR_APP)/util && CC=/usr/bin/gcc BUILD_CC=/usr/bin/gcc make -e
- cd $(DIR_APP) && make lib/blkid/blkid_types.h
- cd $(DIR_APP) && make lib/ext2fs/ext2_types.h
- cd $(DIR_APP) && make lib/uuid/uuid_types.h
- cd $(DIR_APP)/lib/blkid && make $(MAKETUNING)
- cd $(DIR_APP)/lib/et && make $(MAKETUNING)
- cd $(DIR_APP)/lib/ext2fs && make $(MAKETUNING)
- cd $(DIR_APP)/lib/e2p && make $(MAKETUNING)
- cd $(DIR_APP)/lib/uuid && make $(MAKETUNING)
- cd $(DIR_APP)/misc && make $(MAKETUNING) mke2fs
- cd $(DIR_APP) && install -m 0755 misc/mke2fs /install/misc/bin
-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-evms \
+ --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)