summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-02-21 23:06:08 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-02-21 23:06:08 +0100
commita9d88dc660fc75a0c475bbfbb38d3886b60acd44 (patch)
tree0fdd9875c9197ee2c8f890448b5a92dba0e9c3b7
parent800cf4d789932ef18d5a0b93369dc2389579be66 (diff)
Add target to build concatenated guide track.
-rw-r--r--Makefile9
-rw-r--r--targets.mk6
2 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8f97c64..869a78c 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
diff --git a/targets.mk b/targets.mk
index e0c232c..a75de30 100644
--- a/targets.mk
+++ b/targets.mk
@@ -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