Commit | Line | Data |
---|---|---|
e3de7874 MW |
1 | ### -*-makefile-*- |
2 | ||
3 | ### -*- mode: latex; TeX-PDF-mode: t -*- | |
4 | ### | |
5 | ### Copyright (c) 2020 Mark Wooding | |
6 | ### | |
7 | ### This document is free software. You can you can redistribute it and/or | |
8 | ### modify it under the terms of the GNU General Public License as published | |
9 | ### by the Free Software Foundation; either version 3 of the License, or (at | |
10 | ### your option) any later version. | |
11 | ### | |
12 | ### This document is distributed in the hope that it will be useful, but | |
13 | ### WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
15 | ### Public License for more details. | |
16 | ### | |
17 | ### You should have received a copy of the GNU General Public License along | |
18 | ### with this document. If not, see <https://www.gnu.org/licenses/>. | |
19 | ### | |
20 | ### Alternatively, you may share and adapt this document under the terms of | |
21 | ### the Creative Commons Attribution--ShareAlike 4.0 International License | |
22 | ### (CC BY-SA 4.0); see https://creativecommons.org/licenses/by-sa/4.0/ | |
23 | ||
24 | all:: | |
25 | .PHONY: all | |
26 | ||
27 | clean:: | |
28 | .PHONY: clean | |
29 | ||
30 | V = 0 | |
31 | v_tag = $(call v_tag_$V,$0) | |
32 | v_tag_0 = @printf " %-8s %s\n" "$1" "$@"; | |
33 | ||
34 | %.pdf: %.tex | |
35 | $(call v_tag,PDFLATEX)pdflatex $< | |
36 | ||
37 | %.dvi: %.tex | |
38 | $(call v_tag,LATEX)latex $< | |
39 | ||
40 | %.ps: %.dvi | |
41 | $(call v_tag,DVIPS)dvips $< | |
42 | .PRECIOUS: %.dvi | |
43 | ||
44 | all:: drwho.pdf drwho.ps | |
45 | ||
46 | clean::; rm -f *.pdf *.dvi *.ps *.log *.aux | |
47 | ||
48 | upload: | |
392da7a7 MW |
49 | rsync -av drwho.tex drwho.org drwho.pdf \ |
50 | stratocaster:publish/public-html/ | |
e3de7874 | 51 | .PHONY: upload |