-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 766 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (21 loc) · 766 Bytes
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
.PHONY: help
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
setup: ## Setup dev environment
direnv allow .
stream: ## Stream to icecast server
gst-launch-1.0 \
pulsesrc device=${ICECAST_AUDIO_DEVICE} \
! audioconvert \
! lamemp3enc \
! shout2send mount=${ICECAST_MOUNT} port=${ICECAST_PORT} \
username=${ICECAST_USER} password=${ICECAST_PASSWD} \
ip=${ICECAST_HOST}
build: ## Build webamp and other javascripts
npm run build
run: ## Run web server
python -m http.server -d public/
#GIT_REV := $(shell git rev-parse --short HEAD)
deploy: ## Deploy to rpi2 @ 1128.tunlabs.mx
rsync -az -P --delete public/* pi@kame-house:public_html