You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTSPtoWeb/Makefile

33 lines
432 B
Makefile

APP=RTSPtoWeb
SERVER_FLAGS ?= -config config.json
P="\\033[34m[+]\\033[0m"
build:
@echo "$(P) build"
GO111MODULE=on go build *.go
run:
@echo "$(P) run"
GO111MODULE=on go run *.go
serve:
@$(MAKE) server
server:
@echo "$(P) server $(SERVER_FLAGS)"
./${APP} $(SERVER_FLAGS)
test:
@echo "$(P) test"
bash test.curl
bash test_multi.curl
lint:
@echo "$(P) lint"
go vet
.NOTPARALLEL:
.PHONY: build run server test lint