-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
55 lines (44 loc) · 1.59 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
SRC = app.js app.json index.html openlayers-mobile.js proj4js-compressed.js GeolocateControl.js SavedMapLayer.js
SRC_APP = $(shell find app -name \*.js)
SHA1 = $(shell git rev-parse HEAD)
.PHONY: ios
ios: testingapp
mkdir -p cordova-app/www
cp -r build/testing/App/* cordova-app/www/
cd cordova-app && cordova build ios
.PHONY: android-debug
android-debug: testingapp
adb uninstall com.c2c.LuxMob
rm -rf cordova-app/www/*
mkdir -p cordova-app/www
cp -r build/testing/App/* cordova-app/www/
cd cordova-app && cordova run android
.PHONY: android
android: app
rm -rf cordova-app/www/*
mkdir -p cordova-app/www
cp -r build/production/App/* cordova-app/www/
cd cordova-app && cordova build android --release -- --keystore=platforms/android/app_signing.keystore --alias=release
.PHONY: app
app: external/openlayers build/App/production/app.js
.PHONY: testingapp
testingapp: external/openlayers build/App/testing/app.js
build/App/testing/app.js: $(SRC) $(SRC_APP)
sencha app build testing || rm -f $@
build/App/production/app.js: $(SRC) $(SRC_APP)
sencha app build production || rm -f $@
external/openlayers:
git submodule update --init
.PHONY: copy-to-svn
copy-to-svn: svn-checkout app
cp -r build/production/App/* luxmob-svn/
svn add --force --quiet --depth infinity luxmob-svn/*
svn commit -m "Update luxmod [https://github.com/camptocamp/luxembourg_mobileevo/tree/$(SHA1)]" luxmob-svn
.PHONY: svn-checkout
svn-checkout:
svn co https://project.camptocamp.com/svn/geoportail_luxembourg/trunk/geoadmin/luxmob luxmob-svn
.PHONY:
clean:
rm -rf build/production/*
rm -rf build/testing/*
rm -rf luxmob-svn