rules: Uncouple NAME variable from PHONY upload tasks.
authorRicardo Wurmus <rekado@elephly.net>
Sat, 29 Apr 2017 22:11:35 +0000 (00:11 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Sat, 29 Apr 2017 22:11:35 +0000 (00:11 +0200)
rules.mk

index 120172c..ff8e111 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -25,7 +25,7 @@ $(NAME)/$(NAME).ogg: $(NAME)/$(NAME).wav
        oggenc $<
 
 $(NAME)/upload-ogg: $(NAME)/$(NAME).ogg
-       cd $(NAME) && scp $(NAME).ogg elephly.net:~/elephly.net/secret/band/$(NAME)/$(NAME).ogg
+       scp $< elephly.net:~/elephly.net/secret/band/$<
 
 $(NAME)/upload-wav: $(NAME)/$(NAME).wav
-       cd $(NAME) && scp $(NAME).wav elephly.net:~/elephly.net/secret/band/$(NAME)/$(NAME).wav
+       scp $< elephly.net:~/elephly.net/secret/band/$<