-rpms-real: @PACKAGE_TARNAME@.spec dist Makefile
- @CONFIGURE_ARGS=""; \
- for arg in $(ac_configure_args); do \
- case $$arg in \
- --with-release=* ) ;; \
- --enable-tests | --disable-tests ) ;; \
- --with-linux=* | --with-linux-obj=* ) ;; \
- * ) CONFIGURE_ARGS="$$CONFIGURE_ARGS '$$arg'" ;; \
- esac; \
- done; \
- RPMARGS="--define \"configure_args $$CONFIGURE_ARGS\""; \
- if [ -n "@LINUX@" ]; then \
- RPMARGS="$$RPMARGS --define \"kdir @LINUX@\""; \
- if [ -n "@LINUX_OBJ@" -a "@LINUX_OBJ@" != "@LINUX@" ]; then \
- RPMARGS="$$RPMARGS --define \"kobjdir @LINUX_OBJ@\""; \
- fi; \
- fi; \
- if [ -n "@CROSS_PATH@" ]; then \
- if [[ "X$(BUILD_SERVER)" = Xtrue ]]; then \
- echo -e "\n" \
- "*** Don't support cross compilation for the Intel(R) Xeon Phi(TM) card.\n"; \
- exit 1; \
- fi; \
- CROSS_SUFFIX="-mic"; \
- RPMARGS="$$RPMARGS --define \"post_script build/gen_filelist.sh\""; \
- RPMARGS="$$RPMARGS --define \"cross_path @CROSS_PATH@\""; \
- RPMARGS="$$RPMARGS --define \"rootdir %{cross_path}\""; \
- RPMARGS="$$RPMARGS --define \"_prefix %{cross_path}/usr\""; \
- RPMARGS="$$RPMARGS --define \"_mandir %{_prefix}/share/man\""; \
- RPMARGS="$$RPMARGS --define \"_sysconfdir %{cross_path}/etc\""; \
- RPMARGS="$$RPMARGS --define \"make_args @CROSS_VARS@\""; \
- if [ "@CC_TARGET_ARCH@" = "k1om-mpss-linux" ]; then \
- RPMARGS="$$RPMARGS --define \"cross_requires mpss-bootimage\""; \
- else \
- RPMARGS="$$RPMARGS --define \"cross_requires intel-mic-gpl\""; \
- fi; \
- fi; \
- if [[ "X$(BUILD_TESTS)" = Xfalse ]]; then \
- RPMARGS="$$RPMARGS --without lustre_tests"; \
- fi; \
- if [[ "X$(BUILD_SERVER)" = Xfalse ]]; then \
- RPMARGS="$$RPMARGS --without servers"; \
- if [ -n "$$CROSS_SUFFIX" ]; then \
- RPMARGS="$$RPMARGS --define \"lustre_name lustre-client$$CROSS_SUFFIX\""; \
- fi; \
- fi; \
- if [[ "X$(BUILD_OSD_LDISKFS)" = Xtrue ]]; then \
- RPMARGS="$$RPMARGS --with ldiskfs"; \
- fi; \
- if [[ "X$(BUILD_OSD_ZFS)" = Xtrue ]]; then \
- RPMARGS="$$RPMARGS --with zfs"; \
- 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="--without lustre_tests"; \
- fi; \
- eval rpmbuild $$RPMARGS -ts $(distdir).tar.gz