From 23b2ab60ed68afc91fc68aafaf4ad54efcead307 Mon Sep 17 00:00:00 2001 From: Andreas Bombe Date: Sun, 3 Oct 2021 17:19:56 +0200 Subject: Makefile.in: Use $(CURDIR) instead of $(shell pwd) GNU make will set the variable CURDIR to the current directory, there is no need to call out to the shell. Also use simple assignment instead of conditional on not previously set. Otherwise it could get its value from an envirnoment variable "PWD", which shells may or may not have set, or which may not be up to date at the time of the call. --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 7e7f6b8f1..007879e70 100644 --- a/Makefile.in +++ b/Makefile.in @@ -46,7 +46,7 @@ default_pic=@default_pic@ INSTALL_PROGRAM=install -m 755 INSTALL_DATA=install -m 644 -PWD?=$(shell pwd) +PWD=$(CURDIR) DESTDIR= bindir=$(prefix)/bin libdir=$(prefix)/lib -- cgit v1.2.3