.PHONY: rpm
rpm:
	tar -czf ./rpmbuild/SOURCES/u-boot-menu.tar.gz --exclude='rpmbuild' --exclude='.git' --transform "s,^\.,u-boot-menu-`git describe`," .
	rpmbuild -D"ubm_ver `git describe`" -D"_topdir `pwd`/rpmbuild" -ba ./rpmbuild/SPECS/u-boot-menu.spec
