1 |
3 |
dgisselq |
################################################################################
|
2 |
|
|
##
|
3 |
|
|
## Filename: Makefile
|
4 |
|
|
##
|
5 |
|
|
## Project: SD-Card controller, using a shared SPI interface
|
6 |
|
|
##
|
7 |
|
|
## Purpose: To coordinate the build of documentation PDFs from their
|
8 |
|
|
## LaTeX sources.
|
9 |
|
|
##
|
10 |
|
|
## Targets include:
|
11 |
|
|
## all Builds all documents
|
12 |
|
|
## gpl-3.0.pdf Builds the GPL license these files are released
|
13 |
|
|
## under.
|
14 |
|
|
## spec.pdf Builds the specification for the SDSPI
|
15 |
|
|
## controller.
|
16 |
|
|
##
|
17 |
|
|
## Creator: Dan Gisselquist, Ph.D.
|
18 |
|
|
## Gisselquist Technology, LLC
|
19 |
|
|
##
|
20 |
|
|
################################################################################
|
21 |
|
|
##
|
22 |
|
|
## Copyright (C) 2016, Gisselquist Technology, LLC
|
23 |
|
|
##
|
24 |
|
|
## This program is free software (firmware): you can redistribute it and/or
|
25 |
|
|
## modify it under the terms of the GNU General Public License as published
|
26 |
|
|
## by the Free Software Foundation, either version 3 of the License, or (at
|
27 |
|
|
## your option) any later version.
|
28 |
|
|
##
|
29 |
|
|
## This program is distributed in the hope that it will be useful, but WITHOUT
|
30 |
|
|
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
|
31 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
32 |
|
|
## for more details.
|
33 |
|
|
##
|
34 |
|
|
## You should have received a copy of the GNU General Public License along
|
35 |
|
|
## with this program. (It's in the $(ROOT)/doc directory, run make with no
|
36 |
|
|
## target there if the PDF file isn't present.) If not, see
|
37 |
|
|
## for a copy.
|
38 |
|
|
##
|
39 |
|
|
## License: GPL, v3, as defined and found on www.gnu.org,
|
40 |
|
|
## http://www.gnu.org/licenses/gpl.html
|
41 |
|
|
##
|
42 |
|
|
##
|
43 |
|
|
################################################################################
|
44 |
|
|
##
|
45 |
|
|
##
|
46 |
2 |
dgisselq |
all: gpl-3.0.pdf spec.pdf
|
47 |
|
|
DSRC := src
|
48 |
|
|
|
49 |
|
|
gpl-3.0.pdf: $(DSRC)/gpl-3.0.tex
|
50 |
|
|
latex $(DSRC)/gpl-3.0.tex
|
51 |
|
|
latex $(DSRC)/gpl-3.0.tex
|
52 |
|
|
dvips -q -z -t letter -P pdf -o gpl-3.0.ps gpl-3.0.dvi
|
53 |
|
|
ps2pdf -dAutoRotatePages=/All gpl-3.0.ps gpl-3.0.pdf
|
54 |
|
|
rm gpl-3.0.dvi gpl-3.0.log gpl-3.0.aux gpl-3.0.ps
|
55 |
|
|
|
56 |
|
|
spec.pdf: $(DSRC)/spec.tex $(DSRC)/gqtekspec.cls $(DSRC)/GT.eps
|
57 |
|
|
cd $(DSRC)/; latex spec.tex
|
58 |
|
|
cd $(DSRC)/; latex spec.tex
|
59 |
|
|
cd $(DSRC)/; dvips -q -z -t letter -P pdf -o ../spec.ps spec.dvi
|
60 |
|
|
ps2pdf -dAutoRotatePages=/All spec.ps spec.pdf
|
61 |
|
|
-grep -i warning $(DSRC)/spec.log
|
62 |
|
|
@rm -f $(DSRC)/spec.dvi $(DSRC)/spec.log
|
63 |
|
|
@rm -f $(DSRC)/spec.aux $(DSRC)/spec.toc
|
64 |
|
|
@rm -f $(DSRC)/spec.lot $(DSRC)/spec.lof
|
65 |
|
|
@rm -f $(DSRC)/spec.out spec.ps
|
66 |
|
|
|
67 |
|
|
.PHONY: clean
|
68 |
|
|
clean:
|
69 |
|
|
rm -f $(DSRC)/spec.dvi $(DSRC)/spec.log
|
70 |
|
|
rm -f $(DSRC)/spec.aux $(DSRC)/spec.toc
|
71 |
|
|
rm -f $(DSRC)/spec.lot $(DSRC)/spec.lof
|
72 |
|
|
rm -f $(DSRC)/spec.out spec.ps spec.pdf
|
73 |
|
|
rm -f gpl-3.0.pdf
|
74 |
|
|
|