forked from rime/squirrel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (28 loc) · 1.1 KB
/
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
.PHONY: all install librime release debug clean
all: release
install: install-release
LIBRIME = librime/xbuild/lib/Release/librime.dylib
$(LIBRIME):
cd librime; make -f Makefile.xcode
librime:
cd librime; make -f Makefile.xcode
release: $(LIBRIME)
xcodebuild -project Squirrel.xcodeproj -configuration Release build | grep -v setenv | tee build.log
rm -f build/Squirrel.app
cd build ; ln -s Release/Squirrel.app Squirrel.app
debug: $(LIBRIME)
xcodebuild -project Squirrel.xcodeproj -configuration Debug build | grep -v setenv | tee build.log
rm -f build/Squirrel.app
cd build ; ln -s Debug/Squirrel.app Squirrel.app
install-debug:
rm -rf "/Library/Input Methods/Squirrel.app/Contents/Frameworks"
rm -rf "/Library/Input Methods/Squirrel.app/Contents/MacOS"
cp -R build/Debug/Squirrel.app "/Library/Input Methods"
"/Library/Input Methods/Squirrel.app/Contents/Resources/postflight"
install-release:
rm -rf "/Library/Input Methods/Squirrel.app"
cp -R build/Release/Squirrel.app "/Library/Input Methods"
"/Library/Input Methods/Squirrel.app/Contents/Resources/postflight"
clean:
rm -rf build
rm build.log