-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 980 Bytes
/
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
##########################################################
### Author: David Emanuel da Costa
### Email: david.emanuel.da.costa@gmail.com
### Creation date: 24/08/2016
### Updated: 05/10/2016
BUILDDIR=target/make
###########################################################
main : $(BUILDDIR)
$(BUILDDIR) :
@mkdir -p $@
###########################################################
.PHONY : clean cleandeep sync pyrun scrun jvmrun
clean :
@rm -rf $(BUILDDIR)
@find . -name ".DS_STORE" | xargs rm -f
@find . -name "*~" | xargs rm -f
cleandeep :
@rm -rf .classpath .gradle .idea .project .settings
@rm -rf project build target *.iml
pyrun : src/main/python/Example01.py
@spark-submit $<
scrun : target/scala-2.11/iris_2.11-0.1.jar
@spark-submit \
--class "org.mephys.sc.iris.Example01" \
--master local[2] \
$<
jvmrun : target/iris-0.1.jar
@spark-submit \
--class "org.mephys.iris.Example01" \
--master local[2] \
$<
sync :
@git push -u origin master