Skip to content

Commit

Permalink
Adds hacky symlinking to apptainer/singularity
Browse files Browse the repository at this point in the history
  • Loading branch information
ikirker committed Dec 12, 2024
1 parent d67a881 commit 64e4505
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ $(BUILDDIR):
$(LOGDIR):
mkdir $(LOGDIR)

$(BUILDDIR)/%.sif : defs/%.def $(BUILDDIR) $(LOGDIR)
apptainer build --force $@ $< 2>&1 | tee $(addprefix $(LOGDIR)/,$(notdir $@)).`date +\%Y%m%d`.log
apptainer:
ln -sfT `which apptainer` ./apptainer || ln -sfT `which singularity` ./apptainer

$(BUILDDIR)/%.sif : defs/%.def $(BUILDDIR) $(LOGDIR) apptainer
./apptainer build --force $@ $< 2>&1 | tee $(addprefix $(LOGDIR)/,$(notdir $@)).`date +\%Y%m%d`.log
.PHONY: all

0 comments on commit 64e4505

Please sign in to comment.