summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-02-24 20:56:14 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-02-24 20:56:35 +0100
commit70360b59dbb6a6cf4703bfe784a2e1e4d89ef1de (patch)
tree2d7df3670eb9dbfb80a6374f35ae93fa8235a85b
parentae892296500b2186a71fc47d8b0cae0f532af85d (diff)
Add prefix (and clean target) for ogg files.
-rw-r--r--Makefile1
-rw-r--r--rules.mk2
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d46637d..5d193e2 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,7 @@ guide.wav: $(addsuffix /guide.wav,$(SUBDIRS))
sox --combine concatenate $(sort $^) $@
clean:
- rm guide.wav $(wildcard */guide.wav) $(wildcard $(addsuffix /*.wav,$(SUBDIRS)))
+ - rm $(wildcard */*.ogg)
NAME := 01-song1
include rules.mk
diff --git a/rules.mk b/rules.mk
index 1a85976..8f0fb48 100644
--- a/rules.mk
+++ b/rules.mk
@@ -21,7 +21,7 @@ $(NAME)/$(NAME)-klick.wav: $(NAME)/$(NAME)-klick-mono.wav
$(NAME)/guide.wav: $(NAME)/$(NAME)-klick.wav $(NAME)/$(NAME).wav
sox --combine mix $< -v 0.5 $(word 2,$^) $@
-%.ogg: %.wav
+$(NAME)/$(NAME).ogg: $(NAME)/$(NAME).wav
oggenc $<
$(NAME)/upload-ogg: $(NAME)/$(NAME).ogg