Makefile: Make a list of files to be uploaded.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 8 Aug 2020 12:07:49 +0000 (13:07 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 8 Aug 2020 12:07:49 +0000 (13:07 +0100)
Makefile

index a7519ff..61dc051 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,9 @@ V                      = 0
 v_tag                   = $(call v_tag_$V,$0)
 v_tag_0                         = @printf "  %-8s %s\n" "$1" "$@";
 
+UPLOAD                 += drwho.org
+
+UPLOAD                 += drwho.pdf drwho.ps
 %.pdf: %.tex
        $(call v_tag,PDFLATEX)pdflatex $<
 
@@ -46,6 +49,5 @@ all:: drwho.pdf drwho.ps
 clean::; rm -f *.pdf *.dvi *.ps *.log *.aux
 
 upload:
-       rsync -av drwho.tex drwho.org drwho.pdf \
-               stratocaster:publish/public-html/
+       rsync -av $(UPLOAD) stratocaster:publish/public-html/
 .PHONY: upload