forked from dhomann/phonegap-iphone
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
57 lines (51 loc) · 1.81 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
55
56
57
SHELL = /bin/bash
CHMOD = chmod
CP = cp
MV = mv
NOOP = $(SHELL) -c true
RM_F = rm -f
RM_IR = rm -iR
RM_RF = rm -rf
TEST_F = test -f
TOUCH = touch
UMASK_NULL = umask 0
DEV_NULL = > /dev/null 2>&1
MKPATH = mkdir -p
CAT = cat
MAKE = make
OPEN = open
ECHO = echo
ECHO_N = echo -n
JAVA = java
DOXYGEN =
IPHONE_DOCSET_TMPDIR = docs/iphone/tmp
PACKAGEMAKER = /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
all :: installer
PhoneGapLib/javascripts/phonegap-min.js: phonegap-js-core
$(JAVA) -jar util/yuicompressor-2.4.2.jar --charset UTF-8 -o $@ PhoneGapLib/javascripts/phonegap.js
phonegap-js-core:
$(MAKE) -C PhoneGapLib
clean:
$(RM_RF) PhoneGapLib/build/
$(RM_F) PhoneGapLib/PhoneGapLib.xcodeproj/*.mode1v3
$(RM_F) PhoneGapLib/PhoneGapLib.xcodeproj/*.perspectivev3
$(RM_F) PhoneGapLib/PhoneGapLib.xcodeproj/*.pbxuser
$(RM_F) PhoneGapLib/javascripts/phonegap.js
$(RM_RF) PhoneGap-based\ Application/build/
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___.xcodeproj/*.mode1v3
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___.xcodeproj/*.perspectivev3
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___.xcodeproj/*.pbxuser
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___-iPad.xcodeproj/*.mode1v3
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___-iPad.xcodeproj/*.perspectivev3
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___-iPad.xcodeproj/*.pbxuser
$(RM_F) PhoneGap-based\ Application/www/phonegap.js
installer: clean
$(PACKAGEMAKER) -d PhoneGapLibInstaller/PhoneGapLibInstaller.pmdoc -o PhoneGapLibInstaller.pkg
uninstall:
$(RM_RF) ~/Library/Application Support/Developer/Shared/Xcode/Project Templates/PhoneGap
@read -p "Delete all files in ~/Documents/PhoneGapLib/?: " ; \
if [ "$$REPLY" == "y" ]; then \
$(RM_RF) ~/Documents/PhoneGapLib/ ; \
else \
echo "" ; \
fi