-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
37 lines (25 loc) · 857 Bytes
/
Makefile
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
LEO_PROJECT=SleepDisplay_10.5.xcodeproj
LION_PROJECT=SleepDisplay_objc.xcodeproj
SWIFT_PROJECT=SleepDisplay.xcodeproj
VERSION=$(shell cat version)
swift:
xcodebuild -project $(SWIFT_PROJECT) -configuration Release -derivedDataPath build \
-scheme SleepDisplay
x64:
xcodebuild -project $(LION_PROJECT) -configuration Release
ub:
xcodebuild -project $(LEO_PROJECT) -configuration Release
dist_swift: swift
mkdir -p dist/$(VERSION)/x64swift/
mv build/Build/Products/Release/SleepDisplay dist/$(VERSION)/x64swift/
dist_x64: x64
mkdir -p dist/$(VERSION)/x64/
mv build/Release/SleepDisplay dist/$(VERSION)/x64/
dist_ub: ub
mkdir -p dist/$(VERSION)/ub/
mv build/Release/SleepDisplay dist/$(VERSION)/ub/
all_dist: dist_x64 dist_swift
install: x64
cp build/Release/SleepDisplay /usr/local/bin/SleepDisplay
clean:
rm -rf build