Commit 9f374635 authored by Taddeus Kroes's avatar Taddeus Kroes

Added channels update to Makefile

parent 198cd3bc
...@@ -3,7 +3,7 @@ STYLES := style.css ...@@ -3,7 +3,7 @@ STYLES := style.css
ALL := $(SCRIPTS) $(STYLES) ALL := $(SCRIPTS) $(STYLES)
.PHONY: all min clean .PHONY: all min clean channels channels.js
all: $(ALL) all: $(ALL)
...@@ -25,5 +25,10 @@ min: $(patsubst %,%.min,$(ALL)) ...@@ -25,5 +25,10 @@ min: $(patsubst %,%.min,$(ALL))
%.css.min: %.css %.css.min: %.css
curl -X POST -s --data-urlencode input@$< http://cssminifier.com/raw > $@ curl -X POST -s --data-urlencode input@$< http://cssminifier.com/raw > $@
channels: channels.js
channels.js:
wget -O $@ http://www.tvgids.nl/json/lists/channels.php
echo window.CHANNELS=`cat $@` > $@
clean: clean:
rm -f $(ALL) rm -f $(ALL)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment