-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (52 loc) · 2.3 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
#
# This file is part of Celestial's Videoconferencing Evaluation
# (https://github.com/OpenFogStack/celestial-videoconferencing-evaluation).
# Copyright (c) 2021 Tobias Pfandzelter, The OpenFogStack Team.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
.PHONY: all
all: traj-cloud.zip traj-satellite.zip client.img server.img tracker.img tracker-alt.img
traj-%.zip: videoconference-%.toml
@docker run --rm -v $(PWD):/app satgen-docker /app/$< /app/$@
client.img: client/client.sh client/client-base.sh client/workload.csv client/ultra_ping
@docker run --rm \
-v $(PWD)/client/client.sh:/app.sh \
-v $(PWD)/client/client-base.sh:/base.sh \
-v $(PWD)/client/workload.csv:/files/workload.csv \
-v $(PWD)/client/ultra_ping:/files/ultra_ping \
-v $(PWD):/opt/code \
--privileged rootfsbuilder $@
tracker-alt.img: tracker/tracker.bin tracker/alt-tracker.sh tracker/tracker-base.sh
@docker run --rm \
-v $(PWD)/tracker/alt-tracker.sh:/app.sh \
-v $(PWD)/tracker/tracker-base.sh:/base.sh \
-v $(PWD)/tracker/tracker.bin:/files/tracker.bin \
-v $(PWD):/opt/code \
--privileged rootfsbuilder $@
tracker.img: tracker/tracker.bin tracker/tracker.sh tracker/tracker-base.sh
@docker run --rm \
-v $(PWD)/tracker/tracker.sh:/app.sh \
-v $(PWD)/tracker/tracker-base.sh:/base.sh \
-v $(PWD)/tracker/tracker.bin:/files/tracker.bin \
-v $(PWD):/opt/code \
--privileged rootfsbuilder $@
tracker/tracker.bin: tracker/cmd/tracker tracker/go.mod
@cd tracker ; GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o tracker.bin ./cmd/tracker
server.img: server/server.sh server/multiply.nft server/server-base.sh
@docker run --rm \
-v $(PWD)/server/server.sh:/app.sh \
-v $(PWD)/server/server-base.sh:/base.sh \
-v $(PWD)/server/multiply.nft:/files/multiply.nft \
-v $(PWD):/opt/code \
--privileged rootfsbuilder $@