Add Makefiles

This commit is contained in:
Luca 2020-09-20 01:04:14 +02:00
parent 7fb7d1596d
commit 52d346a66e
2 changed files with 27 additions and 0 deletions

13
Makefile Normal file
View File

@ -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

14
nginx-rtmp/Makefile Normal file
View File

@ -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) .