-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (31 loc) · 896 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
IMAGE_NAME=rydercalmdown/walkie-talkie-server
SERVER_HOST=0.0.0.0
SERVER_PORT=5000
.PHONY: build
build:
@docker build -t $(IMAGE_NAME) .
.PHONY: run-server-docker
run-server-docker:
@docker run --env SERVER_HOST=$(SERVER_HOST) -p 5000:5000 $(IMAGE_NAME)
.PHONY: run-server
run-server:
@. env/bin/activate \
&& export SERVER_HOST=$(SERVER_HOST) \
&& export SERVER_PORT=$(SERVER_PORT) \
&& cd src && python WalkieTalkieServer.py
.PHONY: run-client
run-client:
@. env/bin/activate \
&& export SERVER_HOST=$(SERVER_HOST) \
&& export SERVER_PORT=$(SERVER_PORT) \
&& cd src && python WalkieTalkieClient.py
.PHONY: install
install:
@cd deployment && bash install.sh
.PHONY: configure-audio
configure-audio:
@cd deployment && bash configure_usb_audio.sh
.PHONY: configure-on-boot
configure-on-boot:
@echo "Configuring /etc/rc.local"
@cd deployment && bash configure_on_boot.sh