forked from neversun/Slackfish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
20 lines (13 loc) · 846 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SSH_SAILFISH = ssh -p 2222 -i $(HOME)/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost $(1)
build: setup sync sailfish_build deploy
deploy: sailfish_deploy
setup:
$(call SSH_SAILFISH,'mkdir -p /home/mersdk/src/github.com/neversun/Slackfish/')
sync:
rsync --exclude-from=.rsyncignore -Eahrve 'ssh -p 2222 -i $(HOME)/SailfishOS/vmshare/ssh/private_keys/engine/mersdk' $(HOME)/go/src/github.com/neversun/Slackfish mersdk@localhost:/home/mersdk/src/github.com/neversun
clean:
$(call SSH_SAILFISH,'rm -rf /home/mersdk/src/github.com/neversun/Slackfish/')
sailfish_build:
$(call SSH_SAILFISH,'cd /home/mersdk/src/github.com/neversun/Slackfish/; mb2 build')
sailfish_deploy:
$(call SSH_SAILFISH,'cd /home/mersdk/src/github.com/neversun/Slackfish/; mb2 -s rpm/harbour-slackfish.spec -d "SailfishOS Emulator" deploy --sdk')