CHECKS = $(foreach p,$(PLAYLISTS), check/$p)
check: $(CHECKS)
$(CHECKS): check/%: %.m3u8
- $(V_AT)diff -u $< ref/$*.m3u8
+ $(V_AT)diff -u "$<" "ref/$*.m3u8"
.PHONY: check $(CHECKS)
LINKS = $(foreach p,$(PLAYLISTS), link/$p)
case $$ok in \
t) ;; \
*) $(call v-print,LINK,$*); \
- ln -frs $*.m3u8 "$$t.new" && mv "$$t.new" "$$t" ;; \
+ ln -frs "$*.m3u8" "$$t.new" && mv "$$t.new" "$$t" ;; \
esac
.PHONY: link $(LINKS)
ok=nil; \
if ! [ -f "ref/$*.m3u8" ]; then \
$(call v-print,SAVE,$*); \
- cp $< ref/$*.m3u8.new && mv ref/$*.m3u8.new ref/$*.m3u8; \
+ cp "$<" "ref/$*.m3u8.new" && \
+ mv "ref/$*.m3u8.new" "ref/$*.m3u8"; \
fi
.PHONY: save $(SAVE)
$(FORCE_SAVE): force-save/%: %.m3u8
$(V_AT) \
ok=nil; \
- if ! [ -f "ref/$*.m3u8" ] || ! cmp -s $< ref/$*.m3u8; then \
+ if ! [ -f "ref/$*.m3u8" ] || ! cmp -s $< "ref/$*.m3u8"; then \
$(call v-print,SAVE,$*); \
- cp $< ref/$*.m3u8.new && mv ref/$*.m3u8.new ref/$*.m3u8; \
+ cp "$<" "ref/$*.m3u8.new" && \
+ mv "ref/$*.m3u8.new" "ref/$*.m3u8"; \
fi
.PHONY: save $(SAVE)