mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
25 lines
638 B
Makefile
25 lines
638 B
Makefile
.PHONY: help default clean bench test
|
|
|
|
default: bench test
|
|
|
|
clean:
|
|
rm -f ./objs/srs_bench ./objs/srs_test
|
|
|
|
.format.txt: *.go srs/*.go vnet/*.go janus/*.go
|
|
gofmt -w .
|
|
echo "done" > .format.txt
|
|
|
|
bench: ./objs/srs_bench
|
|
|
|
./objs/srs_bench: .format.txt *.go srs/*.go vnet/*.go janus/*.go Makefile
|
|
go build -mod=vendor -o objs/srs_bench .
|
|
|
|
test: ./objs/srs_test
|
|
|
|
./objs/srs_test: .format.txt *.go srs/*.go vnet/*.go Makefile
|
|
go test ./srs -mod=vendor -c -o ./objs/srs_test
|
|
|
|
help:
|
|
@echo "Usage: make [bench|test]"
|
|
@echo " bench Make the bench to ./objs/srs_bench"
|
|
@echo " test Make the test tool to ./objs/srs_test"
|