# Copyright (C) 2008 Platform Computing Inc # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA# # NAME = rhel_java 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) -ba $$i; done kit: $(RPMBUILD) -ba kit-$(NAME).spec iso: mkdir -p $(TMPDIR)/$(NAME) ( cd $(TMPDIR)/$(NAME); for i in $(RPMS); do ln -fs $$i; done ) mkisofs -quiet -V "RHEL Java $(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-*.rpm rm -f kit-$(NAME)-$(VERSION)-$(RELEASE).x86_64.iso