summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-01-27 20:09:05 -0500
committerTheodore Ts'o <tytso@mit.edu>2008-01-27 20:09:05 -0500
commit428f6b32a9029e1f0bc2559233954955a6aae64c (patch)
tree69a22eeed287318371f415a568eaf30a9993e1ca /debian/rules
parent8c7c6eb1675b327387a24bc05ac98dfc890f8073 (diff)
parentc8a5708db1bc66aa361d38e9c74aea929b793921 (diff)
downloade2fsprogs-428f6b32a9029e1f0bc2559233954955a6aae64c.tar.gz
Merge branch 'maint' into next
Conflicts: configure lib/ext2fs/ext2_fs.h misc/e2image.c
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules49
1 files changed, 26 insertions, 23 deletions
diff --git a/debian/rules b/debian/rules
index 0f518188..c24d7691 100755
--- a/debian/rules
+++ b/debian/rules
@@ -97,8 +97,7 @@ endif
BF_CCOPTS = -Os -fomit-frame-pointer
COMMON_CONF_FLAGS = \
- --enable-elf-shlibs --enable-dynamic-e2fsck \
- --infodir=/usr/share/info --enable-fsck
+ --enable-elf-shlibs --infodir=/usr/share/info --enable-fsck
STD_CONF_FLAGS = --with-ccopts="${CCOPTS}" --enable-compression \
${DEVMAPPER}
@@ -112,7 +111,7 @@ STATIC_CONF_FLAGS = --with-ccopts="${CCOPTS}" \
--disable-nls --disable-imager \
--disable-uuidd --disable-tls \
--disable-e2initrd-helper \
- --with-diet-libc --with-ccopts=-fno-stack-protector
+ --with-ccopts=-fno-stack-protector
MIPS_NOPIC_CONF_FLAGS = --with-ccopts="${CCOPTS}" \
--disable-nls --disable-imager \
@@ -179,6 +178,9 @@ ${CFGSTATICSTAMP}:
mkdir -p ${staticbuilddir}
ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+ if type diet > /dev/null 2>&1 ; then \
+ STATIC_CONF_FLAGS="$STATIC_CONF_FLAGS --with-diet-libc"; \
+ fi
cd ${staticbuilddir} && AWK=/usr/bin/awk \
${topdir}/configure ${STATIC_CONF_FLAGS}
else
@@ -194,21 +196,22 @@ build: build-std build-bf $(BUILD_STATIC)
build-std: ${BUILDSTDSTAMP}
${BUILDSTDSTAMP}: ${CFGSTDSTAMP}
dh_testdir
- make -C ${stdbuilddir} all
+ $(MAKE) -C ${stdbuilddir} all
+ $(MAKE) -C ${stdbuilddir}/e2fsck e2fsck.static
( cd ${stdbuilddir}/doc && \
texi2html -split_chapter ${topdir}/doc/libext2fs.texinfo )
- ( cd ${stdbuilddir}/lib/et && make com_err.info && \
+ ( cd ${stdbuilddir}/lib/et && $(MAKE) com_err.info && \
texi2html -split_chapter -expandinfo ${topdir}/lib/et/com_err.texinfo )
# specially-built MIPS libs
ifneq ($(ismips),)
- make -C ${mipsbuilddir}/util
- make -C ${mipsbuilddir} \
+ $(MAKE) -C ${mipsbuilddir}/util
+ $(MAKE) -C ${mipsbuilddir} \
CFLAGS="${CCOPTS} ${MIPS_CFLAGS}" \
LIB_SUBDIRS="lib/et lib/ext2fs" libs
- make -C ${mipsbuilddir64}/util
- make -C ${mipsbuilddir64} \
+ $(MAKE) -C ${mipsbuilddir64}/util
+ $(MAKE) -C ${mipsbuilddir64} \
CFLAGS="${CCOPTS} ${MIPS_CFLAGS_64}" \
LIB_SUBDIRS="lib/et lib/ext2fs" libs
endif
@@ -218,24 +221,24 @@ endif
build-bf: ${BUILDBFSTAMP}
${BUILDBFSTAMP}: ${CFGBFSTAMP}
dh_testdir
- make -C ${bfbuilddir} libs
- make -C ${bfbuilddir}/e2fsck all
- make -C ${bfbuilddir}/misc all
+ $(MAKE) -C ${bfbuilddir} libs
+ $(MAKE) -C ${bfbuilddir}/e2fsck all
+ $(MAKE) -C ${bfbuilddir}/misc all
touch ${BUILDBFSTAMP}
build-static: ${BUILDSTATICSTAMP}
${BUILDSTATICSTAMP}: ${CFGSTATICSTAMP}
dh_testdir
- make -C ${staticbuilddir} libs
- make -C ${staticbuilddir}/e2fsck all
+ $(MAKE) -C ${staticbuilddir} libs
+ $(MAKE) -C ${staticbuilddir}/e2fsck all e2fsck.static
touch ${BUILDSTATICSTAMP}
clean:
dh_testdir
rm -rf ${STAMPSDIR}
- [ ! -f ${stdbuilddir}/Makefile ] || make -C ${stdbuilddir} distclean
- [ ! -f ${bfbuilddir}/Makefile ] || make -C ${bfbuilddir} distclean
- [ ! -f ${staticbuilddir}/Makefile ] || make -C ${staticbuilddir} distclean
+ [ ! -f ${stdbuilddir}/Makefile ] || $(MAKE) -C ${stdbuilddir} distclean
+ [ ! -f ${bfbuilddir}/Makefile ] || $(MAKE) -C ${bfbuilddir} distclean
+ [ ! -f ${staticbuilddir}/Makefile ] || $(MAKE) -C ${staticbuilddir} distclean
rm -rf ${stdbuilddir} ${bfbuilddir} ${staticbuilddir} ${mipsbuilddir} ${mipsbuilddir64}
rm -f doc/libext2fs/*.html lib/et/com_err/*.html debian/*.substvars
dh_clean
@@ -257,10 +260,10 @@ install-std: build
dh_installdirs
mkdir -p ${tmpdir}/sbin
- make -C ${stdbuilddir} install DESTDIR=${tmpdir} \
+ $(MAKE) -C ${stdbuilddir} install DESTDIR=${tmpdir} \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true
# static libs and .h files
- make -C ${stdbuilddir} install-libs DESTDIR=${tmpdir} LDCONFIG=true
+ $(MAKE) -C ${stdbuilddir} install-libs DESTDIR=${tmpdir} LDCONFIG=true
# statically-linked fsck
${INSTALL_PROGRAM} $(E2FSCK_STATIC) ${tmpdir}/sbin
@@ -284,13 +287,13 @@ install-udeb: build
dh_testdir
dh_testroot
- make -C ${bfbuilddir} install-shlibs-libs-recursive DESTDIR=${udebdir} \
+ $(MAKE) -C ${bfbuilddir} install-shlibs-libs-recursive DESTDIR=${udebdir} \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true
- make -C ${bfbuilddir}/e2fsck install DESTDIR=${udebdir} \
+ $(MAKE) -C ${bfbuilddir}/e2fsck install DESTDIR=${udebdir} \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true
- make -C ${bfbuilddir}/misc install DESTDIR=${udebdir} \
+ $(MAKE) -C ${bfbuilddir}/misc install DESTDIR=${udebdir} \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true
- make -C ${bfbuilddir}/resize install DESTDIR=${udebdir} \
+ $(MAKE) -C ${bfbuilddir}/resize install DESTDIR=${udebdir} \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true
rm -rf ${udebdir}/usr