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