-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (48 loc) · 1.95 KB
/
Copy pathMakefile
File metadata and controls
59 lines (48 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Taken from https://stackoverflow.com/questions/714100/os-detecting-makefile
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
ORCHESTRATOR_FINAL_EXECUTABLE := idesyde.exe
ORCHESTRATOR_EXECUTABLE := idesyde-orchestration.exe
BUILD_PATH := ./target/release/
TARGET_FLAG :=
FINAL_TRIPLET := idesyde-windows-$(shell echo $$Env:PROCESSOR_ARCHITECTURE.ToLower())
CP := Copy-Item
else
ORCHESTRATOR_FINAL_EXECUTABLE := idesyde
ORCHESTRATOR_EXECUTABLE := idesyde-orchestration
BUILD_PATH := ./target/x86_64-unknown-linux-musl/release/
TARGET_FLAG := --target x86_64-unknown-linux-musl
FINAL_TRIPLET := idesyde-linux-$(shell uname -p)
CP := cp
endif
$(ORCHESTRATOR_FINAL_EXECUTABLE):
cargo build --package idesyde-orchestration -r $(TARGET_FLAG)
$(CP) $(BUILD_PATH)$(ORCHESTRATOR_EXECUTABLE) $(ORCHESTRATOR_FINAL_EXECUTABLE)
imodules/idesyde-scala-bridge-devicetree.jar:
sbt publishModules
imodules/idesyde-scala-bridge-forsyde-io.jar:
sbt publishModules
imodules/idesyde-scala-bridge-matlab.jar:
sbt publishModules
imodules/idesyde-scala-common.jar:
sbt publishModules
emodules/idesyde-scala-choco.jar:
sbt publishModules
imodules/idesyde-rust-common.exe:
cargo build --package idesyde-common
cp $(BUILD_PATH)idesyde-common.exe ./imodules/idesyde-rust-common.exe
# $(FINAL_TRIPLET).zip:
# ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
# Compress-Archive $(ORCHESTRATOR_FINAL_EXECUTABLE),emodules,imodules $(FINAL_TRIPLET).zip
# else
# zip -r $(FINAL_TRIPLET).zip $(ORCHESTRATOR_FINAL_EXECUTABLE) imodules emodules
# endif
all: $(ORCHESTRATOR_FINAL_EXECUTABLE) \
imodules/idesyde-scala-bridge-devicetree.jar \
imodules/idesyde-scala-bridge-forsyde-io.jar \
imodules/idesyde-scala-bridge-matlab.jar \
imodules/idesyde-scala-common.jar \
imodules/idesyde-rust-common.jar
emodules/idesyde-scala-choco.jar
zip: all
clean:
$(RM) $(FINAL_TRIPLET).zip