[bootlin/training-materials updates] master: Makefile: replace $(PWD) by $(shell pwd) (4dd1c073)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sun Aug 8 13:45:15 CEST 2021
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/4dd1c073bbd46730bc642a986d8a027bd27f5dc5
>---------------------------------------------------------------
commit 4dd1c073bbd46730bc642a986d8a027bd27f5dc5
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date: Sun Aug 8 13:45:15 2021 +0200
Makefile: replace $(PWD) by $(shell pwd)
$(PWD) only works if running under a bash shell, while $(shell pwd)
works without running under bash.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>---------------------------------------------------------------
4dd1c073bbd46730bc642a986d8a027bd27f5dc5
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 779f7e91..d8371f90 100644
--- a/Makefile
+++ b/Makefile
@@ -24,14 +24,14 @@ endef
include $(wildcard mk/*.mk)
# Output directory
-OUTDIR = $(PWD)/out
+OUTDIR = $(shell pwd)/out
# Latex variable definitions
VARS = $(OUTDIR)/vars
# Environment for pdflatex, which allows it to find the stylesheet in the
# common/ directory.
-PDFLATEX_ENV = TEXINPUTS=.:$(PWD)/common: texfot
+PDFLATEX_ENV = TEXINPUTS=.:$(shell pwd)/common: texfot
# Arguments passed to pdflatex
PDFLATEX_OPT = -shell-escape -file-line-error -halt-on-error
More information about the training-materials-updates
mailing list