diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c61e02f --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +.PHONY: all clean nginx-rtmp stream-playout + +all: nginx-rtmp stream-playout + +clean: + $(MAKE) -C nginx-rtmp clean + $(MAKE) -C stream-playout clean + +nginx-rtmp: + $(MAKE) -C nginx-rtmp + +stream-playout: + $(MAKE) -C stream-playout diff --git a/nginx-rtmp/Makefile b/nginx-rtmp/Makefile new file mode 100644 index 0000000..2abd56e --- /dev/null +++ b/nginx-rtmp/Makefile @@ -0,0 +1,14 @@ +DOCKER = docker + +image = nginx-rtmp +tag = alpine3.12 + +.PHONY: all clean $(image) + +all: $(image) + +clean: + $(DOCKER) image rm $(image):$(tag) + +$(image): Dockerfile docker-entrypoint.sh rtmp.conf + $(DOCKER) build -t $(image):$(tag) .