-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
145 lines (120 loc) · 4.04 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
.PHONY: all resources apps test pir
all: apps
###-----------------------------------###
## Publish spatial locally to ivy2. ##
###-----------------------------------###
publish:
sbt "; project emul; +publishLocal; project fringe; publishLocal; project argon; publishLocal; project forge; publishLocal; project spatial; publishLocal; project models; publishLocal; project poly; publishLocal; project utils; publishLocal"
###-----------------------------------###
## Publish spatial locally to m2. ##
###-----------------------------------###
publishM2Local:
bin/publish local
###-----------------------------------###
## Publish spatial to OSS repo . ##
###-----------------------------------###
publishM2Snapshot:
bin/publish remoteSnapshot
###-----------------------------------###
## Publish spatial to OSS repo . ##
###-----------------------------------###
publishM2Release:
bin/publish remoteRelease
###-----------------------------------###
## Update fringe and emul libs. ##
###-----------------------------------###
install:
bin/update_resources.sh
sbt "; project emul; +publishLocal; project fringe; publishLocal"
###-----------------------------------###
## Update pir libs. ##
###-----------------------------------###
pir:
git submodule update --init
bin/update_resources.sh
cd pir && make
pir-clean:
make -C pir/ clean
pir-develop:
git submodule update --init --recursive
bin/update_resources.sh
cd pir/ && git checkout develop && make install
###-----------------------------------###
## Make all apps (but not tests). ##
###-----------------------------------###
apps:
bin/update_resources.sh
sbt "; project emul; +publishLocal; project fringe; publishLocal; project apps; compile"
app: apps
###-----------------------------------###
## Make all tests and apps. ##
###-----------------------------------###
tests:
bin/update_resources.sh
sbt "; project emul; +publishLocal; project fringe; publishLocal; project apps; compile; test:compile"
test: tests
###-----------------------------------###
## Update the files_list for Java jar. ##
###-----------------------------------###
resources:
bash bin/update_resources.sh
sbt "; project fringe; publishLocal"
###-----------------------------------###
## Update the models package. ##
###-----------------------------------###
models:
sbt "; project models; publishLocal"
###-----------------------------------###
## Update local emul package. ##
###-----------------------------------###
emul:
sbt "; project emul; publishLocal"
###-----------------------------------###
## Make all documentation . ##
###-----------------------------------###
doc:
bin/scrub_doc prep
sbt doc
bin/scrub_doc replace
bin/scrub_doc scrub
cat build.sbt | grep "version :="
echo "Please publish to spatial-doc, under appropriate version:"
echo " cp -r target/scala-2.12/api/* ~/spatial-doc/<version>"
###-----------------------------------###
## Remove all generated files. ##
###-----------------------------------###
clear:
rm -f *.log
rm -f *.sim
rm -rf logs
rm -rf gen
rm -rf reports
###-----------------------------------###
## Clean all compiled Scala projects ##
###-----------------------------------###
clean: clean-argon clean-forge clean-spatial clean-emul
sbt clean
###-----------------------------------###
## Clean Spatial projects ##
###-----------------------------------###
clean-spatial:
rm -f $(HOME)/bin/emptiness
sbt "; spatial/clean"
###-----------------------------------###
## Clean Argon projects ##
###-----------------------------------###
clean-argon:
rm -f $(HOME)/bin/emptiness
sbt "; argon/clean"
###-----------------------------------###
## Clean Forge projects ##
###-----------------------------------###
clean-forge:
rm -f $(HOME)/bin/emptiness
sbt "; forge/clean"
###-----------------------------------###
## Clean Emul projects ##
###-----------------------------------###
clean-emul:
rm -f $(HOME)/bin/emptiness
sbt "; emul/clean"