forked from GPGTools/GPGMail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (44 loc) · 2.16 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
all: compile
compile:
INSTALL_GPGMAIL=0 xcodebuild -project GPGMail.xcodeproj -target GPGMail -configuration Release build
install: install
INSTALL_GPGMAIL=1 xcodebuild -project GPGMail.xcodeproj -target GPGMail -configuration Release build
dmg: compile
@./Utilities/create_sparkle.sh
@./Dependencies/GPGTools_Core/scripts/create_dmg.sh
clean-gpgme:
rm -rf Dependencies/MacGPGME/build/dist
clean-gpgmail:
xcodebuild -project GPGMail.xcodeproj -target GPGMail -configuration Release clean > /dev/null
xcodebuild -project GPGMail.xcodeproj -target GPGMail -configuration Debug clean > /dev/null
clean: clean-gpgme clean-gpgmail
check-all-warnings: clean-gpgmail
make | grep "warning: "
check-warnings: clean-gpgmail
make | grep "warning: "|grep -v "#warning"
check: clean-gpgmail
@if [ "`which scan-build`" == "" ]; then echo 'usage: PATH=$$PATH:path_to_scan_build make check'; echo "see: http://clang-analyzer.llvm.org/"; exit; fi
@echo "";
@echo "Have a closer look at these warnings:";
@echo "=====================================";
@echo "";
@scan-build -analyzer-check-objc-missing-dealloc \
-analyzer-check-dead-stores \
-analyzer-check-idempotent-operations \
-analyzer-check-llvm-conventions \
-analyzer-check-objc-mem \
-analyzer-check-objc-methodsigs \
-analyzer-check-objc-missing-dealloc \
-analyzer-check-objc-unused-ivars \
-analyzer-check-security-syntactic \
--use-cc clang -o build/report xcodebuild \
-project GPGMail.xcodeproj -target GPGMail \
-configuration Release build 2>error.log|grep "is deprecated"
@echo "";
@echo "Now have a look at build/report/ or at error.log";
style:
@if [ "`which uncrustify`" == "" ]; then echo 'usage: PATH=$$PATH:path_to_uncrustify make style'; echo "see: https://github.com/bengardner/uncrustify"; exit; fi
uncrustify -c Utilities/uncrustify.cfg --no-backup Source/*.h
uncrustify -c Utilities/uncrustify.cfg --no-backup Source/*.m
uncrustify -c Utilities/uncrustify.cfg --no-backup Source/PrivateHeaders/*
uncrustify -c Utilities/uncrustify.cfg --no-backup Source/GPG.subproj/*