menu/examples/Makefile.ytfeed

40 lines
859 B
Makefile

PREFIX ?= /usr/local
# This is the YouTube channel ID of jawed, the YouTube channel which published
# the first YouTube video, which is often used as an example.
JAWED_ID = UC4QobU6STFB0P71PMvOGN5A
# Sorry, there might be a better way to do this but it would take more time
# than typing it out.
.PHONY: launcher
launcher:
../menu <ytfeed.launcher
$(JAWED_ID).xml:
./ytfeed.dl . $(JAWED_ID)
.PHONY: clean
clean:
rm -f $(JAWED_ID).xml
.PHONY: install
install:
install -m 755 \
ytfeed \
ytfeed.aggregate \
ytfeed.browse-entry \
ytfeed.browse-feed \
ytfeed.browse-feeds \
ytfeed.dl \
$(PREFIX)/bin
.PHONY: uninstall
uninstall:
rm -f $(PREFIX)/bin/ytfeed \
$(PREFIX)/bin/ytfeed.aggregate \
$(PREFIX)/bin/ytfeed.browse-entry \
$(PREFIX)/bin/ytfeed.browse-feed \
$(PREFIX)/bin/ytfeed.browse-feeds \
$(PREFIX)/bin/ytfeed.dl