VERSION=1.0 NAME=yum-ocs-downloadonly TOPDIR=$(PWD)/.. all: @echo "Use 'make rpms' to create RPMs" include ../params.inc.mak create_tarball: PWD=`pwd` echo $(PWD) rm -rf /tmp/kit-tmpdir && mkdir /tmp/kit-tmpdir cp downloadonly.* /tmp/kit-tmpdir cp yum-ocs-downloadonly.spec /tmp/kit-tmpdir ( cd /tmp/kit-tmpdir; tar czf $(PWD)/$(FILENAME) . ) rm -rf /tmp/kit-tmpdir rpms: create_tarball $(RPMBUILD) -ta $(FILENAME) clean: rm -f $(FILENAME)