$(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)
$(call v-tag,MKM3U)./mkm3u $(MKM3UFLAGS) $($*_MKM3UFLAGS) \
-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)
$(CHECKS): check/%: %.m3u8