diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2017-02-21 23:06:08 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2017-02-21 23:06:08 +0100 |
commit | a9d88dc660fc75a0c475bbfbb38d3886b60acd44 (patch) | |
tree | 0fdd9875c9197ee2c8f890448b5a92dba0e9c3b7 | |
parent | 800cf4d789932ef18d5a0b93369dc2389579be66 (diff) |
Add target to build concatenated guide track.
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | targets.mk | 6 |
2 files changed, 11 insertions, 4 deletions
@@ -1,8 +1,15 @@ -SUBDIRS := $(wildcard */.) +SUBDIRS := $(wildcard 0*/) all : $(SUBDIRS) +guide: guide.wav +guide.wav: $(addsuffix guide.wav,$(SUBDIRS)) + sox --combine concatenate $(sort $^) $@ + $(SUBDIRS) : $(MAKE) -C $@ +%/guide.wav: + $(MAKE) -C $* guide + .PHONY : all $(SUBDIRS) @@ -26,15 +26,15 @@ parts/%.pdf: parts/%.ly music/%.ly %-klick.wav: %-klick-mono.wav sox $< $@ channels 2 -%-guide.wav: %-klick.wav %.wav - sox --combine mix $*-klick.wav -v 0.25 $*.wav $@ +guide.wav: $(NAME)-klick.wav $(NAME).wav + sox --combine mix $(NAME)-klick.wav -v 0.25 $(NAME).wav $@ %.ogg: %.wav oggenc $< wav: $(NAME).wav ogg: $(NAME).ogg -guide: $(NAME)-guide.wav +guide: guide.wav upload-ogg: ogg scp $(NAME).ogg elephly.net:~/elephly.net/secret/band/$(NAME)/$(NAME).ogg |