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