Skip to content

Commit

Permalink
Adds APPTAINER temporarily set to singularity to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ikirker committed Dec 12, 2024
1 parent 64e4505 commit 45ed57e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ MAKEFLAGS += --warn-undefined-variables

SIFS=$(addprefix sifs/,$(addsuffix .sif,$(notdir $(basename $(wildcard defs/*.def)))))

APPTAINER=singularity

BUILDDIR=sifs
LOGDIR=logs

Expand All @@ -19,9 +21,6 @@ $(BUILDDIR):
$(LOGDIR):
mkdir $(LOGDIR)

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
$(APPTAINER) build --force $@ $< 2>&1 | tee $(addprefix $(LOGDIR)/,$(notdir $@)).`date +\%Y%m%d`.log
.PHONY: all

0 comments on commit 45ed57e

Please sign in to comment.