|
@@ -13,13 +13,13 @@ all: bin/protocol bin/foohid build/Release/SerialGamepad.app build/Installer.pkg
|
13
|
13
|
cp -R build/Installer.pkg bin/SerialGamepad.pkg
|
14
|
14
|
|
15
|
15
|
# Install locally
|
16
|
|
-install: all
|
17
|
|
- cp bin/protocol ~/bin/protocol
|
18
|
|
- cp bin/foohid ~/bin/foohid
|
|
16
|
+install: bin/protocol bin/foohid build/Release/SerialGamepad.app
|
|
17
|
+ cp bin/protocol /usr/local/bin/serial-protocol
|
|
18
|
+ cp bin/foohid /usr/local/bin/foohid
|
19
|
19
|
cp -r build/Release/SerialGamepad.app /Applications/SerialGamepad.app
|
20
|
20
|
|
21
|
21
|
# Build GUI project
|
22
|
|
-build/Release/SerialGamepad.app:
|
|
22
|
+build/Release/SerialGamepad.app: SerialGamepad SerialGamepad.xcodeproj
|
23
|
23
|
xcodebuild
|
24
|
24
|
|
25
|
25
|
# Build protocol binary
|
|
@@ -47,7 +47,7 @@ build/SerialGamepad.pkg: build/Release/SerialGamepad.app
|
47
|
47
|
build/SerialGamepad.pkg
|
48
|
48
|
|
49
|
49
|
# Create installer bundling our App and fooHID
|
50
|
|
-build/Installer.pkg: build/SerialGamepad.pkg build/foohid.pkg Resources/Distribution.xml Resources/readme.rtf Resources/license.txt
|
|
50
|
+build/Installer.pkg: build/SerialGamepad.pkg build/foohid.pkg Resources
|
51
|
51
|
productbuild \
|
52
|
52
|
--distribution Resources/Distribution.xml \
|
53
|
53
|
--package-path build \
|