diff --git a/atomics-contract/Makefile b/atomics-contract/Makefile index 1a019fd..2890edb 100644 --- a/atomics-contract/Makefile +++ b/atomics-contract/Makefile @@ -1,6 +1,6 @@ # We cannot use $(shell pwd), which will return unix path format on Windows, # making it hard to use. -cur_dir = $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) +cur_dir = $(dir $(abspath $(firstword $(MAKEFILE_LIST)))) TOP := $(cur_dir) # RUSTFLAGS that are likely to be tweaked by developers. For example, diff --git a/contract/Makefile b/contract/Makefile index 7e88d6e..e1112c6 100644 --- a/contract/Makefile +++ b/contract/Makefile @@ -1,6 +1,6 @@ # We cannot use $(shell pwd), which will return unix path format on Windows, # making it hard to use. -cur_dir = $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) +cur_dir = $(dir $(abspath $(firstword $(MAKEFILE_LIST)))) TOP := $(cur_dir) # RUSTFLAGS that are likely to be tweaked by developers. For example, diff --git a/stack-reorder-contract/Makefile b/stack-reorder-contract/Makefile index af810f9..48c9954 100644 --- a/stack-reorder-contract/Makefile +++ b/stack-reorder-contract/Makefile @@ -1,6 +1,6 @@ # We cannot use $(shell pwd), which will return unix path format on Windows, # making it hard to use. -cur_dir = $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) +cur_dir = $(dir $(abspath $(firstword $(MAKEFILE_LIST)))) TOP := $(cur_dir) # RUSTFLAGS that are likely to be tweaked by developers. For example, diff --git a/standalone-contract/Makefile b/standalone-contract/Makefile index 9ad825d..14d827c 100644 --- a/standalone-contract/Makefile +++ b/standalone-contract/Makefile @@ -1,6 +1,6 @@ # We cannot use $(shell pwd), which will return unix path format on Windows, # making it hard to use. -cur_dir = $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) +cur_dir = $(dir $(abspath $(firstword $(MAKEFILE_LIST)))) TOP := $(cur_dir) # RUSTFLAGS that are likely to be tweaked by developers. For example, diff --git a/workspace/Makefile b/workspace/Makefile index 6cd1398..71fbbc1 100644 --- a/workspace/Makefile +++ b/workspace/Makefile @@ -1,6 +1,6 @@ # We cannot use $(shell pwd), which will return unix path format on Windows, # making it hard to use. -cur_dir = $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) +cur_dir = $(dir $(abspath $(firstword $(MAKEFILE_LIST)))) TOP := $(cur_dir) # RUSTFLAGS that are likely to be tweaked by developers. For example,