Page MenuHomec4science

Makefile
No OneTemporary

File Metadata

Created
Thu, Jan 30, 19:03

Makefile

FILES = /etc/systemd/system/elk_slurm_jobacct_async_pyslurm@.service /etc/systemd/system/elk_slurm_jobacct_async_pyslurm@.timer /usr/local/bin/elk_slurm_jobacct_async_pyslurm.py /etc/sysconfig/elk_slurm_jobacct_async_pyslurm.env
CLUSTER := $(shell awk -F'=' '/^ClusterName/{print $$2}' /etc/slurm/slurm.conf)
all: $(FILES) systemd
clean:
systemctl disable elk_slurm_jobacct_async_pyslurm@${CLUSTER}.timer
rm -f $(FILES)
$(FILES):
cp -f $(notdir $@) $@
systemd:
systemctl enable elk_slurm_jobacct_async_pyslurm@${CLUSTER}.timer
systemctl start elk_slurm_jobacct_async_pyslurm@${CLUSTER}.timer

Event Timeline