chiark / gitweb /
drwho.tex: Include Dodo's full name.
[drwho] / Makefile
1 ### -*-makefile-*-
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
28 FORCE:
29 .PHONY: FORCE
30
31 V                        = 0
32 v_tag                    = $(call v_tag_$V,$1)
33 v_tag_0                  = @printf "  %-8s %s\n" "$1" "$@";
34
35 UPLOAD                  += drwho.org
36
37 UPLOAD                  += drwho.pdf drwho.ps
38 %.pdf: %.tex
39         $(call v_tag,PDFLATEX)pdflatex $<
40 %.dvi: %.tex
41         $(call v_tag,LATEX)latex $<
42 %.ps: %.dvi
43         $(call v_tag,DVIPS)dvips $<
44 .PRECIOUS: %.dvi
45 all:: drwho.pdf drwho.ps
46 clean::; rm -f *.pdf *.dvi *.ps *.log *.aux
47
48 upload: $(UPLOAD) FORCE
49         rsync -av $(UPLOAD) stratocaster:publish/public-html/
50 .PHONY: upload