X-Git-Url: https://git.distorted.org.uk/~mdw/drwho/blobdiff_plain/c471bf80a49499cacb2b88f32d855a5bdf069e8e..HEAD:/Makefile diff --git a/Makefile b/Makefile index 90cb459..f28b548 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ ### -*-makefile-*- - -### -*- mode: latex; TeX-PDF-mode: t -*- ### ### Copyright (c) 2020 Mark Wooding ### @@ -27,24 +25,26 @@ all:: clean:: .PHONY: clean +FORCE: +.PHONY: FORCE + V = 0 -v_tag = $(call v_tag_$V,$0) +v_tag = $(call v_tag_$V,$1) v_tag_0 = @printf " %-8s %s\n" "$1" "$@"; +UPLOAD += drwho.org + +UPLOAD += drwho.pdf drwho.ps %.pdf: %.tex $(call v_tag,PDFLATEX)pdflatex $< - %.dvi: %.tex $(call v_tag,LATEX)latex $< - %.ps: %.dvi $(call v_tag,DVIPS)dvips $< .PRECIOUS: %.dvi - all:: drwho.pdf drwho.ps - clean::; rm -f *.pdf *.dvi *.ps *.log *.aux -upload: - rsync -av drwho.tex drwho.pdf stratocaster:publish/public-html/ +upload: $(UPLOAD) FORCE + rsync -av $(UPLOAD) stratocaster:publish/public-html/ .PHONY: upload