-
Notifications
You must be signed in to change notification settings - Fork 161
/
Makefile
30 lines (25 loc) · 1.05 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
.PHONY: QuickLookStephen debug clean
QuickLookStephen:
xcodebuild SYMROOT=../build -project QuickLookStephenProject/QuickLookStephen.xcodeproj -configuration "Release" $(XC_OPTIONS) build
debug:
xcodebuild SYMROOT=../build -project QuickLookStephenProject/QuickLookStephen.xcodeproj -configuration "Debug" $(XC_OPTIONS) build
install:
@if [ -d "./build/Release/QLStephen.qlgenerator" ]; then \
rm -rf ~/Library/QuickLook/QLStephen.qlgenerator ; \
cp -r ./build/Release/QLStephen.qlgenerator ~/Library/QuickLook/ ; \
qlmanage -r ; \
else \
echo "Sorry, nothing to install. You might want to build it first. ;-)"; \
fi
package:
@if [ -d "./build/Release/QLStephen.qlgenerator" ]; then \
rm -rf "./build/Release/packaged" ; \
mkdir "build/Release/packaged" ; \
cd "build/Release" ; \
zip -rX "./packaged/QLStephen.qlgenerator.VERSION.zip" "./QLStephen.qlgenerator" ; \
sha256sum "./packaged/QLStephen.qlgenerator.VERSION.zip" ; \
else \
echo "Sorry, nothing to package. You might want to build it first. ;-)"; \
fi
clean:
@rm -rf ./build