X-Git-Url: https://git.distorted.org.uk/~mdw/epls/blobdiff_plain/50a7c91c7c6178a8dc7e6b7f8180ef9fb12fd764..a4da849c51426001585c8c764deb15c5c1d4ba75:/Makefile diff --git a/Makefile b/Makefile index 2f845ce..bbac0d1 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ $(call declare-playlist, drwho, D/Doctor Who) $(call declare-filter, drwho-marco-polo, drwho,marco-polo, D/Doctor Who/S01E04 D. Marco Polo) $(call declare-filter, drwho-crusade, drwho,crusade, D/Doctor Who/S02E06 P. The Crusade) $(call declare-filter, drwho-myth-makers, drwho,myth-makers, D/Doctor Who/S03E03 U. The Myth Makers) -$(call declare-filter, drwho-masterplan, drwho,masterplan, D/Doctor Who/S03E04 V. The Daleks' Master Plan) #' +$(call declare-filter, drwho-masterplan, drwho,daleks-masterplan, D/Doctor Who/S03E04 V. The Daleks' Master Plan) #' $(call declare-filter, drwho-massacre, drwho,massacre, D/Doctor Who/S03E05 W. The Massacre of St Bartholomew's Eve) #' $(call declare-filter, drwho-toymaker, drwho,toymaker, D/Doctor Who/S03E07 Y. The Celestial Toymaker) $(call declare-filter, drwho-savages, drwho,savages, D/Doctor Who/S03E09 AA. The Savages) @@ -186,7 +186,7 @@ $(call declare-playlist, yes-minister, Y/Yes Minister) $(call declare-playlist, the-young-ones, Y/The Young Ones) M3US = $(addsuffix .m3u8,$(PLAYLISTS)) -DEPFILES += $(addsuffix .dep,$(PLAYLISTS)) +DEPFILES += $(addsuffix .m3u-dep,$(PLAYLISTS)) TARGETS += $(M3US) CLEANFILES += $(DEPFILES) @@ -200,7 +200,16 @@ mkm3u.cache-stamp: CLEANFILES += *.m3u8.new $(M3US): %.m3u8: $$($$*_EPLS) mkm3u mkm3u.cache-stamp $(call v-tag,MKM3U)./mkm3u $(MKM3UFLAGS) $($*_MKM3UFLAGS) \ - -M$*.dep -O$@ -o"$@.new" "$<" && mv "$@.new" "$@" + -M$*.m3u-dep -O$@ -o"$@.new" "$<" && mv "$@.new" "$@" + +PLS = $(sort $(foreach p,$(PLAYLISTS), \ + $($p_EPLS:.epls=.pl))) +DEPFILES += $(addsuffix -dep,$(PLS)) +TARGETS += $(PLS) +CLEANFILES += *.pl.new +$(PLS): %.pl: %.epls mkm3u mkm3u.cache-stamp + $(call v-tag,MKPL)./mkm3u -D $(MKM3UFLAGS) $($*_MKM3UFLAGS) \ + -M$*.pl-dep -O$@ -o"$@.new" "$<" && mv "$@.new" "$@" CHECKS = $(foreach p,$(PLAYLISTS), check/$p) check: $(CHECKS)