NAME = openjdk VERSION = 1.6.0 RELEASE = 1 TOPDIR = $(PWD) RPMBUILD = rpmbuild --define "_topdir $(PWD)" RPMS = `find $(PWD)/RPMS -type f -name *.rpm` TMPDIR = /tmp/$(NAME)-$(VERSION)-build all: components kit components: for i in SPECS/*.spec; do $(RPMBUILD) -bb $$i; done kit: $(RPMBUILD) -bb kit-openjdk.spec iso: mkdir -p $(TMPDIR)/$(NAME) ( cd $(TMPDIR)/$(NAME); for i in $(RPMS); do ln -fs $$i; done ) mkisofs -quiet -V "OpenJDK $(VERSION) Kit" -r -T -f -o kit-$(NAME)-$(VERSION)-$(RELEASE).x86_64.iso $(TMPDIR) rm -rf $(TMPDIR) clean: rm -f RPMS/noarch/component-*.rpm RPMS/noarch/kit-openjdk*.rpm rm -f kit-$(NAME)-$(VERSION)-$(RELEASE).x86_64.iso