-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile.windows
42 lines (29 loc) · 1.14 KB
/
Makefile.windows
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
SHELL := cmd
SPK_VERSION = 0.42.0
SPFS_VERSION = 0.42.0
SOURCE_ROOT := $(subst /,\,$(SOURCE_ROOT))
CARGO_TARGET_DIR := $(SOURCE_ROOT)\target
spfs_packages := $(spfs_packages),spfs-cli-winfsp
installation-dir: C:/Program\ Files/spk C:/Program\ Files/spk/bin
C:/Program\ Files/spk:
mkdir "C:\Program Files\spk"
C:/Program\ Files/spk/bin:
mkdir "C:\Program Files\spk\bin"
install-debug-spfs: copy-debug-spfs
install-debug-spk: copy-debug-spk
install-debug: install-debug-spfs install-debug-spk
install: copy-release
install-spfs: copy-spfs
copy-debug: copy-debug-spfs copy-debug-spk
copy-debug-spfs: installation-dir debug-spfs
cd "$(SOURCE_ROOT)"
copy /B $(CARGO_TARGET_DIR)\debug\spfs*.exe "C:\Program Files\spk\bin" /Y
copy-debug-spk: installation-dir copy-debug-spfs debug
cd "$(SOURCE_ROOT)"
copy /B $(CARGO_TARGET_DIR)\debug\spk.exe "C:\Program Files\spk\bin" /Y
copy-release: release installation-dir copy-spfs
cd "$(SOURCE_ROOT)"
copy /B $(CARGO_TARGET_DIR)\release\spk.exe "C:\Program Files\spk\bin" /Y
copy-spfs: installation-dir release-spfs
cd "$(SOURCE_ROOT)"
copy /B $(CARGO_TARGET_DIR)\release\spfs*.exe "C:\Program Files\spk\bin" /Y