1 AUTOMAKE_OPTIONS = foreign
3 EXTRA_DIST = @PACKAGE_TARNAME@.spec
4 EXTRA_DIST += kernel_patches
8 find $(distdir) -name .deps -o \
10 -name .#* | xargs rm -rf
11 $(MAKE) $(AM_MAKEFLAGS) \
12 top_distdir="$(top_distdir)" distdir="$(distdir)" \
15 rpms: @PACKAGE_TARNAME@.spec dist Makefile
16 CONFIGURE_ARGS=$$(echo $$(eval echo $(ac_configure_args)) | \
17 sed -re 's/--(en|dis)able-tests//'); \
18 if [ -n "@LINUX@" ]; then \
19 CONFIGURE_ARGS=$$(echo $$(eval echo $$CONFIGURE_ARGS) | \
20 sed -re 's/--with-linux=[^ ][^ ]*//'); \
21 RPMARGS="--define \"kdir @LINUX@\""; \
22 CONFIGURE_ARGS=$$(echo $$(eval echo $$CONFIGURE_ARGS) | \
23 sed -re 's/--with-linux-obj=[^ ][^ ]*//'); \
24 if [ -n "@LINUX_OBJ@" -a "@LINUX_OBJ@" != "@LINUX@" ]; then \
25 RPMARGS="$$RPMARGS --define \"kobjdir @LINUX_OBJ@\""; \
28 CONFIGURE_ARGS=$$(echo $$(eval echo $$CONFIGURE_ARGS) | \
29 sed -re 's/--with-release=[^ ][^ ]*//'); \
30 RPMARGS="$$RPMARGS --define \"configure_args $$CONFIGURE_ARGS\""; \
31 echo "Building ldiskfs RPM with $$RPMARGS"; \
32 eval rpmbuild $$RPMARGS -ta $(distdir).tar.gz
34 srpm: @PACKAGE_TARNAME@.spec dist Makefile
35 eval rpmbuild $$RPMARGS -ta $(distdir).tar.gz
37 # this only needs to be done if disting stand-alone (i.e. not as a
40 if ! grep "AC_INIT(\[Lustre\], \[LUSTRE_VERSION\], \[http:\/\/bugs\.whamcloud\.com\/], \[lustre\])" ../configure.ac; then \
41 if [ -f META ]; then \
42 cp META $(distdir)/META; \