endef
define %declare-chapter-playlist
-$1-chap_EPLS = $1.epls
-$1-chap_MKM3UFLAGS = -c
+$1_EPLS = $2.epls
+$1_MKM3UFLAGS = -c
endef
define %declare-filter-playlist
declare-playlist = \
$(eval $(call %declare-playlist,$1,$2)) \
$(eval $(call %declare-simple-playlist,$1))
+declare-chapters-only = \
+ $(eval $(call %declare-playlist,$1,$2)) \
+ $(eval $(call %declare-chapter-playlist,$1,$1))
declare-chapters = \
$(eval $(call %declare-playlist,$1,$2)) \
$(eval $(call %declare-simple-playlist,$1)) \
$(eval $(call %declare-playlist,$1-chap,$2 (chapters))) \
- $(eval $(call %declare-chapter-playlist,$1))
+ $(eval $(call %declare-chapter-playlist,$1-chap,$1))
declare-filter = \
$(eval $(call %declare-playlist,$1,$4)) \
$(eval $(call %declare-filter-playlist,$1,$2,$3))