Skip to content

Commit

Permalink
remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-kaestner committed May 26, 2024
1 parent 7b3cd1f commit 8e3d9df
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,9 @@ DIR:=$(shell sh -c "pwd")
USER_ID:=$(shell sh -c "id -u")
USER_NAME:=$(shell sh -c "id -u -n")
USER_HOME:=/home/latex
BASE_IMAGE:=ghcr.io/felix-kaestner/latex:1.0
BASE_IMAGE:=ghcr.io/felix-kaestner/latex:1.0
DOCKER_IMAGE:=mustermann/latex

# Check if any of the args are empty.
ifndef DIR
$(error DIR is undefined)
endif
ifndef USER_ID
$(error USER_ID is undefined)
endif
ifndef USER_NAME
$(error USER_NAME is undefined)
endif

# Log all variables.
$(info DIR is $(DIR))
$(info USER_ID is $(USER_ID))
$(info USER_NAME is $(USER_NAME))

.PHONY: all

thesis:
Expand All @@ -38,4 +22,4 @@ count:
@docker run --rm -v $(DIR):$(USER_HOME) $(DOCKER_IMAGE) bash -c "texcount -inc thesis.tex"

container:
@docker build --build-arg USER_ID=$(USER_ID) --build-arg USER_NAME=$(USER_NAME) --build-arg USER_HOME=$(USER_HOME) --build-arg BASE_IMAGE=$(BASE_IMAGE) --target latex -t $(DOCKER_IMAGE) .
@docker build --build-arg USER_ID=$(USER_ID) --build-arg USER_NAME=$(USER_NAME) --build-arg USER_HOME=$(USER_HOME) --build-arg BASE_IMAGE=$(BASE_IMAGE) --target latex -t $(DOCKER_IMAGE) .

0 comments on commit 8e3d9df

Please sign in to comment.