# 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 # # $Id$ # NAME = platform-hpc TOPDIR = $(PWD) ARCH = $(shell arch) RPMS = `find $(TOPDIR)/RPMS/ -type f |grep -v '/.svn/'` TMPDIR = /tmp SPECFILE = $(PWD)/kit-platform-hpc.spec SRPMS=\ SRPMS/component-benchmarking-tools \ SRPMS/component-hpc-libraries \ SRPMS/component-mpich1-libraries \ SRPMS/component-mpich2-libraries \ SRPMS/component-mvapich1-libraries \ SRPMS/component-mvapich2-libraries \ SRPMS/component-openmpi-libraries \ SRPMS/component-hpc-source \ SRPMS/kit-platform-hpc \ SRPMS/blacs-mpich1-gnu \ SRPMS/linpack-mvapich1-gnu \ SRPMS/openmpi-interconnects-gnu \ SRPMS/blacs-mvapich1-gnu \ SRPMS/linpack-openmpi-gnu \ SRPMS/scalapack-mpich1-gnu \ SRPMS/blacs-openmpi-gnu \ SRPMS/scalapack-mvapich1-gnu \ SRPMS/hdf5 \ SRPMS/scalapack-openmpi-gnu \ SRPMS/hdf5-mpich1-gnu \ SRPMS/mpich2-ethernet-gnu \ SRPMS/hdf5-openmpi-gnu \ SRPMS/mvapich1-infiniband-gnu \ SRPMS/linpack-mpich1-gnu \ SRPMS/mvapich2-infiniband-gnu \ SRPMS/mpich1-ethernet-gnu \ SRPMS/hpc-source \ SRPMS/compat-hdf5 \ SRPMS/fftw \ SRPMS/bonnie++ \ SRPMS/iozone \ SRPMS/iperf all: packages components kit include ../../rhn/params.inc.mak packages: ( cd packages; $(MAKE) ) components: ( cd components; $(MAKE) ) platform-hpc-kit: rpmdirs rm -rf /tmp/$(NAME)-build && mkdir -p /tmp/$(NAME)-build/$(NAME) rsync -a ./docs ./plugins /tmp/$(NAME)-build/$(NAME) \ --exclude .svn/ --exclude *.pyc cp kit-$(NAME).spec /tmp/$(NAME)-build ( cd /tmp/$(NAME)-build; tar czf /tmp/kit-$(NAME)-$(VERSION).tar.gz . ) $(RPMBUILD) -ta /tmp/kit-$(NAME)-$(VERSION).tar.gz rm -rf /tmp/$(NAME)-build /tmp/kit-$(NAME)-$(VERSION).tar.gz kit: platform-hpc-kit mkdir -p $(TMPDIR)/disk1/$(NAME) cd $(TMPDIR)/disk1/$(NAME) ; \ for i in $(RPMS); do ln -sf $$i; done mkisofs -quiet -V "Platform HPC Kit" -r -T -f -o kit-$(NAME)-$(VERSION)-$(RELEASE).$(ARCH).iso $(TMPDIR)/disk1 rm -rf $(TMPDIR)/disk1 clean: -( cd components && make clean ) -( cd packages && make clean ) for srpm in $(SRPMS); do rm -f $$srpm*; done rm -rf $(TOPDIR)/RPMS/noarch rm -rf $(TOPDIR)/SOURCES/* $(TOPDIR)/SPECS/* $(TOPDIR)/BUILD/* rm -rf $(TOPDIR)/disk1 rm -rf kit-*.iso rm -rf /tmp/$(NAME)-build /tmp/$(NAME)-$(VERSION).tar.gz .PHONY: components packages