blob: b87e44ed1c49d584b4298919749ff770d530c1b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
XCPRETTIFIER := xcpretty
ifeq (, $(shell which $(XCPRETTIFIER)))
XCPRETTIFIER := cat
endif
.PHONY: tailmac
tailmac:
xcodebuild -scheme tailmac -destination 'platform=macOS,arch=arm64' -derivedDataPath build -configuration Release build | $(XCPRETTIFIER)
cp -r ./build/Build/Products/Release/tailmac ./bin/tailmac
.PHONY: host
host:
xcodebuild -scheme host -destination 'platform=macOS,arch=arm64' -derivedDataPath build -configuration Release build | $(XCPRETTIFIER)
cp -r ./build/Build/Products/Release/Host.app ./bin/Host.app
.PHONY: clean
clean:
rm -rf ./bin
rm -rf ./build
mkdir -p ./bin
.PHONY: all
all: clean tailmac host
|