## Process this file with automake to produce Makefile.in -*- makefile -*- # Description: Makefile for GASNet aries-conduit spawner # Terms of use are as specified in aries-conduit/license.txt AUTOMAKE_OPTIONS = foreign 1.4 target = gasnetrun_aries target_pl = $(target).pl # 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 $(top_builddir)/other/mpirun_common: $(top_srcdir)/other/mpirun_common.in @cd $(top_builddir)/other && $(MAKE) mpirun_common $(target): $(top_builddir)/other/perlstart $(top_builddir)/other/mpirun_common $(target_pl): $(top_srcdir)/other/spawner/gasnetrun_mpi.pl cp -f "$<" $@ all-local: $(target) $(target_pl) DISTCLEANFILES = $(target) $(target_pl) # Conditionally install the .pl and its wrapper if USE_ARIES_CONDUIT scripts = $(target) data = $(target_pl) else scripts = data = endif bin_SCRIPTS = $(scripts) dotpl_DATA = $(data)