-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (44 loc) · 2.4 KB
/
Makefile
File metadata and controls
60 lines (44 loc) · 2.4 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
60
PROFILE_SWITCHER_DIR=com.github.sbelectronics.streamdeck.profileswitcher.sdPlugin
PROFILE_SWITCHER_EXE=$(PROFILE_SWITCHER_DIR)\profile_switcher.exe
DEMO_DIR=com.github.sbelectronics.streamdeck.demo.sdPlugin
DEMO_EXE=$(DEMO_DIR)\demo.exe
BINCLOCK_DIR=com.github.sbelectronics.streamdeck.binclock.sdPlugin
BINCLOCK_EXE=$(BINCLOCK_DIR)\binclock.exe
HTTP_DIR=com.github.sbelectronics.streamdeck.http.sdPlugin
HTTP_EXE=$(HTTP_DIR)\http.exe
PKG_FILES=$(wildcard pkg/**/*.go)
# redefine this!
APPDATA=C:\Users\smbaker\AppData\Roaming
all: $(PROFILE_SWITCHER_EXE) $(DEMO_EXE) $(BINCLOCK_EXE) $(HTTP_EXE)
$(PROFILE_SWITCHER_EXE): cmd/profile_switcher/*.go $(PKG_FILES)
go build -o $(PROFILE_SWITCHER_EXE) cmd/profile_switcher/profile_switcher.go
$(DEMO_EXE): cmd/demo/*.go $(PKG_FILES)
go build -o $(DEMO_EXE) cmd/demo/demo.go
$(BINCLOCK_EXE): cmd/binclock/*.go $(PKG_FILES)
go build -o $(BINCLOCK_EXE) cmd/binclock/binclock.go
$(HTTP_EXE): cmd/http/*.go $(PKG_FILES)
go build -o $(HTTP_EXE) cmd/http/http.go
install:
xcopy /h /k /e /c /y /i $(BINCLOCK_DIR) $(APPDATA)\Elgato\StreamDeck\Plugins\$(BINCLOCK_DIR)
xcopy /h /k /e /c /y /i $(DEMO_DIR) $(APPDATA)\Elgato\StreamDeck\Plugins\$(DEMO_DIR)
xcopy /h /k /e /c /y /i $(PROFILE_SWITCHER_DIR) $(APPDATA)\Elgato\StreamDeck\Plugins\$(PROFILE_SWITCHER_DIR)
xcopy /h /k /e /c /y /i $(HTTP_DIR) $(APPDATA)\Elgato\StreamDeck\Plugins\$(HTTP_DIR)
distrib:
rm Release/*.streamdeckPlugin
DistributionTool -b -i $(BINCLOCK_DIR) -o Release || echo
DistributionTool -b -i $(DEMO_DIR) -o Release || echo
DistributionTool -b -i $(HTTP_DIR) -o Release || echo
supersize:
convert $(BINCLOCK_DIR)/pluginIcon.png -resize 144x144 $(BINCLOCK_DIR)/pluginIcon@2x.png
convert $(BINCLOCK_DIR)/icon.png -resize 40x40 $(BINCLOCK_DIR)/icon@2x.png
convert $(BINCLOCK_DIR)/defaultImage.png -resize 144x144 $(BINCLOCK_DIR)/defaultImage@2x.png
convert $(DEMO_DIR)/pluginIcon.png -resize 144x144 $(DEMO_DIR)/pluginIcon@2x.png
convert $(DEMO_DIR)/icon.png -resize 40x40 $(DEMO_DIR)/icon@2x.png
convert $(DEMO_DIR)/defaultImage.png -resize 144x144 $(DEMO_DIR)/defaultImage@2x.png
convert $(HTTP_DIR)/pluginIcon.png -resize 144x144 $(HTTP_DIR)/pluginIcon@2x.png
convert $(HTTP_DIR)/icon.png -resize 40x40 $(HTTP_DIR)/icon@2x.png
convert $(HTTP_DIR)/defaultImage.png -resize 144x144 $(HTTP_DIR)/defaultImage@2x.png
clean:
rm $(PROFILE_SWITCHER_EXE) $(DEMO_EXE) $(BINCLOCK_EXE) $(HTTP_EXE)
test:
go test ./...