We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 201df16 commit a9025aaCopy full SHA for a9025aa
Makefile
@@ -0,0 +1,26 @@
1
+TOOL_NAME = UnityBuildKit
2
+VERSION = 0.7.0
3
+
4
+PREFIX = /usr/local
5
+INSTALL_PATH = $(PREFIX)/bin/$(TOOL_NAME)
6
+SHARE_PATH = $(PREFIX)/share/$(TOOL_NAME)
7
+BUILD_PATH = .build/release/$(TOOL_NAME)
8
+CURRENT_PATH = $(PWD)
9
+TAR_FILENAME = $(TOOL_NAME)-$(VERSION).tar.gz
10
11
+install: build
12
+ mkdir -p $(PREFIX)/bin
13
+ cp -f $(BUILD_PATH) $(INSTALL_PATH)
14
+ mkdir -p $(SHARE_PATH)
15
16
+build:
17
+ swift build --disable-sandbox -c release -Xswiftc -static-stdlib
18
19
+uninstall:
20
+ rm -f $(INSTALL_PATH)
21
+ rm -rf $(SHARE_PATH)
22
23
+get_sha:
24
+ wget https://github.com/handsomecode/$(TOOL_NAME)/archive/$(VERSION).tar.gz -O $(TAR_FILENAME)
25
+ shasum -a 256 $(TAR_FILENAME)
26
+ rm $(TAR_FILENAME)
0 commit comments