Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Jul 31, 2021
1 parent 63fa356 commit be5bb9d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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

0 comments on commit be5bb9d

Please sign in to comment.