forked from mwbrooks/cordova-plugin-menu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
71 lines (61 loc) · 1.71 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
all: help
help:
@echo
@echo "NAME"
@echo " Build & Run Plugin"
@echo
@echo "DESCRIPTION"
@echo " Easily build and run the plugin."
@echo
@echo "SYNOPSIS"
@echo " make COMMAND"
@echo
@echo "COMMANDS"
@echo " dist ......... Generate plugin distribution for all platforms."
@echo " release ...... Generate an archive (zip) using the latest tag."
@echo " android ...... Build & run example app for Android."
@echo " blackberry ... Build & run example app for BlackBerry 5/6."
@echo " desktop ...... Build & run example app for Desktop."
@echo " ios .......... Build & run example app for iOS."
@echo
@echo "USAGE"
@echo " make dist ...... Only generate plugin distribution files."
@echo " make desktop ... Build example application and run on Desktop."
@echo
android: clean dist example
./bin/install/android
./bin/run/android
blackberry: clean dist example
./bin/install/blackberry
./bin/run/blackberry
desktop: clean dist example
./bin/install/desktop
./bin/run/desktop
ios: clean dist example
./bin/install/ios
./bin/run/ios
dist:
./bin/clean/dist
./bin/dist/android
./bin/dist/blackberry
./bin/dist/desktop
./bin/dist/ios
@echo "--------------"
@echo " Distribution"
@echo "--------------"
@echo " => /build/distribution/"
@echo
release: dist
cd ./build/distribution; zip -rq phonegap-plugin-menu-v`git describe --tags master`.zip .
mkdir -p ./build/release
mv ./build/distribution/*.zip ./build/release
@echo "---------"
@echo " Release"
@echo "---------"
@echo " => /build/release/phonegap-plugin-menu-v`git describe --tags master`.zip"
@echo
example:
./bin/create/example
clean:
./bin/clean/build
.SILENT: all help example test dist release android blackberry desktop ios clean