fixes DOWNLOAD_DIR variable for windows
This commit is contained in:
6
Makefile
6
Makefile
@@ -81,13 +81,13 @@ endif
|
|||||||
|
|
||||||
ifneq (,$(findstring Microsoft,$(shell uname -r)))
|
ifneq (,$(findstring Microsoft,$(shell uname -r)))
|
||||||
DOWNLOADS_DIR=$(patsubst /mnt/c%,C:%,$(realpath ./downloads/))
|
DOWNLOADS_DIR=$(patsubst /mnt/c%,C:%,$(realpath ./downloads/))
|
||||||
|
else
|
||||||
|
ifneq (,$(findstring Windows,$(shell echo ${OS})))
|
||||||
|
DOWNLOADS_DIR=$(shell pwd)/downloads/
|
||||||
else
|
else
|
||||||
DOWNLOADS_DIR=$(realpath ./downloads/)
|
DOWNLOADS_DIR=$(realpath ./downloads/)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#Try to pick up the downloads directory if running in windows
|
|
||||||
ifneq (,$(findstring Windows,$(shell echo ${OS})))
|
|
||||||
DOWNLOADS_DIR=$(shell pwd)/downloads/
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Try to figure out which archive to use from the architecture
|
# Try to figure out which archive to use from the architecture
|
||||||
|
|||||||
Reference in New Issue
Block a user