blob: 62511a500cd35a4a5591df4d766a12263b230ffd [file] [log] [blame] [edit]
# Makefile for cray scripts
#
AUTOMAKE_OPTIONS = foreign
EXTRA_DIST = \
etc_sysconfig_slurm \
libalps_test_programs.tar.gz \
opt_modulefiles_slurm.in \
pam_job.c \
slurm.conf.template \
slurmconfgen.py.in
if HAVE_NATIVE_CRAY
sbin_SCRIPTS = slurmconfgen.py
endif
if HAVE_REAL_CRAY
noinst_DATA = opt_modulefiles_slurm
endif
# Don't rely on autoconf to replace variables outside of makefiles
opt_modulefiles_slurm: opt_modulefiles_slurm.in Makefile
sed -e 's|@prefix[@]|$(prefix)|g' \
-e 's|@MUNGE_DIR[@]|$(MUNGE_DIR)|g' \
-e 's|@libdir[@]|$(libdir)|g' \
${abs_srcdir}/opt_modulefiles_slurm.in >opt_modulefiles_slurm
slurmconfgen.py: slurmconfgen.py.in Makefile
sed -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
${abs_srcdir}/slurmconfgen.py.in >slurmconfgen.py
clean-generic:
rm -f opt_modulefiles_slurm slurmconfgen.py