-EXTRA_DIST = @PACKAGE_TARNAME@.spec \
- build/Makefile \
- build/Rules.in
-
-rpms-real: @PACKAGE_TARNAME@.spec dist Makefile
- CONFIGURE_ARGS=$$(echo $$(eval echo $(ac_configure_args)) | \
- sed -re 's/--(en|dis)able-tests//'); \
- if [ -n "@LINUX@" ]; then \
- CONFIGURE_ARGS=$$(echo $$(eval echo $$CONFIGURE_ARGS) | \
- sed -re 's/--with-linux=[^ ][^ ]*//'); \
- RPMARGS="--define \"kdir @LINUX@\""; \
- CONFIGURE_ARGS=$$(echo $$(eval echo $$CONFIGURE_ARGS) | \
- sed -re 's/--with-linux-obj=[^ ][^ ]*//'); \
- if [ -n "@LINUX_OBJ@" -a "@LINUX_OBJ@" != "@LINUX@" ]; then \
- RPMARGS="$$RPMARGS --define \"kobjdir @LINUX_OBJ@\""; \
- fi; \
- fi; \
- CONFIGURE_ARGS=$$(echo $$(eval echo $$CONFIGURE_ARGS) | \
- sed -re 's/--with-release=[^ ][^ ]*//'); \
- RPMARGS="$$RPMARGS --define \"configure_args $$CONFIGURE_ARGS\""; \
- if [[ "X$(BUILD_TESTS)" = Xfalse ]]; then \
- RPMARGS="$$RPMARGS --define \"build_lustre_tests 0\""; \
- fi; \
- if [[ "X$(BUILD_SERVER)" = Xfalse ]]; then \
- RPMARGS="$$RPMARGS --define \"lustre_name lustre-client\""; \
- fi; \
- if [[ "X$(BUILD_OSD_LDISKFS)" = Xtrue ]]; then \
- RPMARGS="$$RPMARGS --define \"build_lustre_osd_ldiskfs 1\""; \
- fi; \
- if [[ "X$(BUILD_OSD_ZFS)" = Xtrue ]]; then \
- RPMARGS="$$RPMARGS --define \"build_lustre_osd_zfs 1\""; \
- fi; \
- echo "Building Lustre RPM with $$RPMARGS"; \
- eval rpmbuild $$RPMARGS -ta $(distdir).tar.gz
-
-srpm-real: @PACKAGE_TARNAME@.spec dist Makefile
- if [[ "X$(BUILD_TESTS)" = Xfalse ]]; then \
- RPMARGS="--define \"build_lustre_tests 0\""; \
- fi; \
- eval rpmbuild $$RPMARGS -ta $(distdir).tar.gz