|
@@ -13,12 +13,14 @@ CFLAGS ?= -Wall -pedantic -std=c11
|
13
|
13
|
|
14
|
14
|
# Build all binaries
|
15
|
15
|
all: bin/protocol bin/foohid build/Release/SerialGamepad.app
|
16
|
|
- cp -R build/Release/SerialGamepad.app bin/SerialGamepad.app
|
|
16
|
+ @rm -rf bin/SerialGamepad.app
|
|
17
|
+ @cp -R build/Release/SerialGamepad.app bin/SerialGamepad.app
|
17
|
18
|
|
18
|
19
|
# Install locally
|
19
|
20
|
install: bin/protocol bin/foohid build/Release/SerialGamepad.app
|
20
|
21
|
cp bin/protocol /usr/local/bin/serial-protocol
|
21
|
22
|
cp bin/foohid /usr/local/bin/foohid
|
|
23
|
+ @rm -rf /Applications/SerialGamepad.app
|
22
|
24
|
cp -r build/Release/SerialGamepad.app /Applications/SerialGamepad.app
|
23
|
25
|
|
24
|
26
|
# Build GUI project
|
|
@@ -38,7 +40,8 @@ bin/foohid: src/serial.o src/foohid.o
|
38
|
40
|
# Build distributable installer package
|
39
|
41
|
distribute: build/Installer.pkg
|
40
|
42
|
@mkdir -p bin
|
41
|
|
- cp -R build/Installer.pkg bin/SerialGamepad.pkg
|
|
43
|
+ @rm -rf bin/SerialGamepad.pkg
|
|
44
|
+ @cp -R build/Installer.pkg bin/SerialGamepad.pkg
|
42
|
45
|
|
43
|
46
|
# Download foohid binary dependency
|
44
|
47
|
build/foohid.pkg:
|