Add prefix (and clean target) for ogg files.
authorRicardo Wurmus <rekado@elephly.net>
Fri, 24 Feb 2017 19:56:14 +0000 (20:56 +0100)
committerRicardo Wurmus <rekado@elephly.net>
Fri, 24 Feb 2017 19:56:35 +0000 (20:56 +0100)
Makefile
rules.mk

index d46637d..5d193e2 100644 (file)
--- 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
index 1a85976..8f0fb48 100644 (file)
--- 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