From: Mark Wooding Date: Wed, 16 Mar 2022 16:46:18 +0000 (+0000) Subject: Makefile: Support `chapters-only' playlists. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/epls/commitdiff_plain/6c3e910f11bfa92ca8257397cbb547f9e73edff3?hp=151b3c4f3f5cb4edcdc95ba144f85b3dbb993ee1 Makefile: Support `chapters-only' playlists. --- diff --git a/Makefile b/Makefile index b5494b9..ab3a750 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,8 @@ $1_MKM3UFLAGS = 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 @@ -41,11 +41,14 @@ endef 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))