Skip to content

Commit

Permalink
Exit Makefile if one of the shell calls fails
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMatthes committed Nov 17, 2022
1 parent b89e3e1 commit af901b8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ USER_HOME:=/home/latex
BASE_IMAGE:=kaestner/latex
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 Down

0 comments on commit af901b8

Please sign in to comment.