File tree Expand file tree Collapse file tree 1 file changed +16
-25
lines changed Expand file tree Collapse file tree 1 file changed +16
-25
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,24 @@ VERSION ?=
7
7
# ALS build date
8
8
BUILD_DATE ?=
9
9
10
- # Location of home dir for tests
11
- export ALS_HOME =$(ROOTDIR ) /testsuite
12
-
13
- # Exectuable extension
14
- ifeq ($(OS ) ,)
15
- # Not Windows
16
- EXE =""
10
+ # Define platform-specific variables
11
+ ifeq ($(OS ) ,Windows_NT)
12
+ PYTHON =python.exe
13
+ EXE =.exe
17
14
else
18
- # Windows
19
- EXE =.exe
15
+ UNAME_S := $(shell uname -s)
16
+ ifeq ($(UNAME_S),Linux)
17
+ OS =unix
18
+ else ifeq ($(UNAME_S),Darwin)
19
+ OS =osx
20
+ endif
21
+ PYTHON =python3
22
+ EXE =
20
23
endif
21
24
25
+ # Location of home dir for tests
26
+ export ALS_HOME =$(ROOTDIR ) /testsuite
27
+
22
28
# Command to run for tests
23
29
export ALS =$(ROOTDIR ) /.obj/server/ada_language_server$(EXE )
24
30
64
70
NODE_PLATFORM =$(shell node -e "console.log(process.platform) ")
65
71
endif
66
72
67
- # Target platform as nodejs reports it
68
- ifeq ($(OS ) ,Windows_NT)
69
- PYTHON =python.exe
70
- EXE =.exe
71
- else
72
- UNAME_S := $(shell uname -s)
73
- ifeq ($(UNAME_S),Linux)
74
- OS =unix
75
- else ifeq ($(UNAME_S),Darwin)
76
- OS =osx
77
- endif
78
- PYTHON =python3
79
- EXE =
80
- endif
81
-
82
73
VSCE =npx vsce
83
74
84
75
LIBRARY_FLAGS=-XBUILD_MODE =$(BUILD_MODE ) \
@@ -110,7 +101,7 @@ all: coverage-instrument
110
101
-XVERSION=$(VERSION )
111
102
ifdef NODE
112
103
mkdir -p integration/vscode/ada/$(NODE_ARCH)/$(NODE_PLATFORM)
113
- cp -f $(ALS)$(EXE) integration/vscode/ada/$(NODE_ARCH)/$(NODE_PLATFORM)
104
+ cp -f $(ALS) integration/vscode/ada/$(NODE_ARCH)/$(NODE_PLATFORM)
114
105
endif
115
106
116
107
generate :
You can’t perform that action at this time.
0 commit comments