# Variables for building rpmRPMBUILD_DIR:=$(shellmktemp-u /tmp/rpmbuild.XXXX)RELEASE_TARBALL_URL:= https://github.com/alibaba/inclavare-containers/archive/v$(INCLAVARE_CONTAINERS_VERSION).tar.gzRELEASE_TARBALL_FILE:=$(RPMBUILD_DIR)/SOURCES/v$(INCLAVARE_CONTAINERS_VERSION).tar.gzRELEASE_TARBALL_EXIST:=$(shellif[-f$(RELEASE_TARBALL_FILE)];then echo"y";else echo"n";fi;)release-tarball:ifneq($(RELEASE_TARBALL_EXIST), y)@mkdir-p$(RPMBUILD_DIR)/{BUILD,RPMS,SOURCES,SPECS,SRPMS}@wget -P$(RPMBUILD_DIR)/SOURCES $(RELEASE_TARBALL_URL)endifrpm:release-tarball@rpmbuild -D"_topdir $(RPMBUILD_DIR)"-ba centos/shim-rune.spec@echo"the rpms of shim-rune located in $(RPMBUILD_DIR)/RPMS".PHONY:release-tarball rpm