## Process this file with automake to produce Makefile.in -*- makefile -*- # $Source: /var/local/cvs/gasnet/ibv-conduit/contrib/Makefile.am,v $ # $Date: 2006/12/15 22:54:25 $ # $Revision: 1.2 $ # Description: Makefile for GASNet IBV spawner # Terms of use are as specified in ibv-conduit/license.txt AUTOMAKE_OPTIONS = foreign 1.4 # Use of the MPI spawning support is optional if IBV_BOOTSTRAP_MPI mpi_target_pl = gasnetrun_ibv-mpi.pl $(mpi_target_pl): $(top_srcdir)/mpi-conduit/contrib/gasnetrun_mpi.pl cp -f "$?" $@ else mpi_target_pl = endif target = gasnetrun_ibv # Need a bin_DATA rule, but automake disallows that. So, fake it. dotpldir = $(bindir) # Make sure the perl script and shell wrapper are always current locally. # This ensures we can run from the build directory if needed. $(top_builddir)/other/perlstart: $(top_srcdir)/other/perlstart.in @cd $(top_builddir)/other && $(MAKE) perlstart $(target): $(top_builddir)/other/perlstart $(target).pl: $(top_srcdir)/vapi-conduit/contrib/gasnetrun_vapi.pl cp -f "$?" $@ all-local: $(target) $(target).pl $(mpi_target_pl) DISTCLEANFILES = $(target) $(target).pl $(mpi_target_pl) # Conditionally install the .pl and its wrapper if USE_IBV_CONDUIT scripts = $(target) data = $(target).pl $(mpi_target_pl) else scripts = data = endif bin_SCRIPTS = $(scripts) dotpl_DATA = $(data) .PHONY: force force: