From 933b74b180b53e26c625f096369ee4cc38df9de2 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Wed, 29 Oct 2014 15:47:23 +0200 Subject: [PATCH] Add embed code and tweak the Makefile --- Makefile | 12 ++++++++++-- player.template | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8bb4b9b..5f4285c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,13 @@ -default: - $(MAKE) $(STREAMS:=.html) +.PHONY: default +.SILENT: default +default: $(STREAMS:=.html) +ifndef STREAMS + echo You need to specify a list of streams the STREAMS variable +endif + +.PHONY: clean +clean: + rm -f *.html %.html: sed "s/{{stream}}/$(@:.html=)/g" < player.template > $@ diff --git a/player.template b/player.template index bab99af..7e58582 100644 --- a/player.template +++ b/player.template @@ -64,3 +64,49 @@ + + + +