# needed autogen.sh scripts
# see https://bugzilla.lustre.org/attachment.cgi?id=27156
# for an example)
- if grep "^--- .*\/autoconf" debian/patches/*; then \
- if [ ! -f autogen.sh ]; then \
+ if grep -e "^--- .*\/autoconf\/" \
+ -e "^--- .*\/autoMakefile\.am" \
+ -e "^--- .*\/Makefile\.am" \
+ -e "^--- .*\/configure\.ac" \
+ -e "^--- .*\/configure\.in" \
+ debian/patches/*; then \
+ if [ ! -f build/autogen.sh ]; then \
echo "You have patches which require autogen.sh to be run, but it doesn't exist"; \
echo "Please see https://bugzilla.lustre.org/attachment.cgi?id=27156"; \
exit 1; \
cp /usr/share/misc/config.guess config.guess; \
cp /usr/share/misc/config.guess libsysio/config.guess; \
cp /usr/share/misc/config.guess ldiskfs/config.guess; \
- sh ./autogen.sh; \
+ sh build/autogen.sh; \
fi; \
touch $@
find . -type f -print0 | xargs -0 touch -r COPYING \;
# Doesn't seem possible to only build modules...
./configure --with-linux=$(KSRC) \
+ --disable-server \
--disable-quilt \
--disable-dependency-tracking \
--disable-doc \
--disable-utils \
--disable-liblustre \
--disable-snmp \
- --enable-ldiskfs \
--disable-zerocopy \
--disable-tests \
--enable-quota
-kdist_configure: kdist_config
+kdist_configure: kdist_config
# the binary-modules rule is invoked by module-assistant while processing the
# kdist* targets. It is called by module-assistant or make-kpkg and *not*
clean:
dh_testdir
dh_testroot
- dpatch deapply-all
+ dpatch deapply-all -v
-$(MAKE) distclean
rm -rf debian/substvars debian/*.bak debian/*~ *~ *-stamp debian/$(PATCH_PKG)
ls -d debian/lustre-client-modules-* | grep -v _KVERS_ | xargs rm -f || true
patch: patch-stamp
patch-stamp:
- dpatch apply-all
+ dpatch apply-all -v
touch $@
unpatch:
- dpatch deapply-all
+ dpatch deapply-all -v
rm -rf debian/patched patch-stamp
.PHONY: binary-arch clean source diff binary binary-indep binary-arch install configure