Skip to content

Commit

Permalink
Makefile: do not rely on a shell
Browse files Browse the repository at this point in the history
... and on Make's behavior of not updating `$PWD` for recursive make
calls.
  • Loading branch information
dev-zero committed Dec 6, 2018
1 parent 9eb4201 commit 60c80ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
SHELL = /bin/sh
#
# the home dir is taken from the current directory.
CP2KHOME := $(abspath $(PWD))
ifeq ($(CP2KHOME),)
CP2KHOME := $(abspath $(shell pwd))
export CP2KHOME
endif
ARCH := local
export VERSION=sopt

Expand Down

0 comments on commit 60c80ff

Please sign in to comment.