### -*-makefile-*- ### ### Copyright (c) 2020 Mark Wooding ### ### This document is free software. You can you can redistribute it and/or ### modify it under the terms of the GNU General Public License as published ### by the Free Software Foundation; either version 3 of the License, or (at ### your option) any later version. ### ### This document is distributed in the hope that it will be useful, but ### WITHOUT ANY WARRANTY; without even the implied warranty of ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General ### Public License for more details. ### ### You should have received a copy of the GNU General Public License along ### with this document. If not, see . ### ### Alternatively, you may share and adapt this document under the terms of ### the Creative Commons Attribution--ShareAlike 4.0 International License ### (CC BY-SA 4.0); see https://creativecommons.org/licenses/by-sa/4.0/ all:: .PHONY: all clean:: .PHONY: clean FORCE: .PHONY: FORCE 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: $(UPLOAD) FORCE rsync -av $(UPLOAD) stratocaster:publish/public-html/ .PHONY: upload