1 |
4 |
dgisselq |
################################################################################
|
2 |
|
|
##
|
3 |
|
|
## Filename: Makefile
|
4 |
|
|
##
|
5 |
|
|
## Project: A Wishbone Controlled FM Transmitter Hack
|
6 |
|
|
##
|
7 |
|
|
## Purpose: To coordinate the build of the documentation files. A completed
|
8 |
|
|
## set of documentation files should have been provided with this
|
9 |
|
|
## distribution. If not, type make in the directory containing this file
|
10 |
|
|
## and the specification and licence files will be created.
|
11 |
|
|
##
|
12 |
|
|
## Targets:
|
13 |
|
|
##
|
14 |
|
|
## (Default) Specification and GPL license.
|
15 |
|
|
##
|
16 |
|
|
## gpl-3.0.pdf A copy of the GPL 3.0 license, under which this software
|
17 |
|
|
## is distributed.
|
18 |
|
|
##
|
19 |
|
|
## spec.pdf The specification for this module.
|
20 |
|
|
##
|
21 |
|
|
##
|
22 |
|
|
## Creator: Dan Gisselquist, Ph.D.
|
23 |
|
|
## Gisselquist Technology, LLC
|
24 |
|
|
##
|
25 |
|
|
################################################################################
|
26 |
|
|
##
|
27 |
|
|
## Copyright (C) 2015-2016, Gisselquist Technology, LLC
|
28 |
|
|
##
|
29 |
|
|
## This program is free software (firmware): you can redistribute it and/or
|
30 |
|
|
## modify it under the terms of the GNU General Public License as published
|
31 |
|
|
## by the Free Software Foundation, either version 3 of the License, or (at
|
32 |
|
|
## your option) any later version.
|
33 |
|
|
##
|
34 |
|
|
## This program is distributed in the hope that it will be useful, but WITHOUT
|
35 |
|
|
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
|
36 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
37 |
|
|
## for more details.
|
38 |
|
|
##
|
39 |
|
|
## You should have received a copy of the GNU General Public License along
|
40 |
|
|
## with this program. (It's in the $(ROOT)/doc directory. Run make with no
|
41 |
|
|
## target there if the PDF file isn't present.) If not, see
|
42 |
|
|
## for a copy.
|
43 |
|
|
##
|
44 |
|
|
## License: GPL, v3, as defined and found on www.gnu.org,
|
45 |
|
|
## http://www.gnu.org/licenses/gpl.html
|
46 |
|
|
##
|
47 |
|
|
##
|
48 |
|
|
################################################################################
|
49 |
|
|
##
|
50 |
|
|
##
|
51 |
|
|
all: gpl-3.0.pdf spec.pdf
|
52 |
|
|
DSRC := src
|
53 |
|
|
|
54 |
|
|
gpl-3.0.pdf: $(DSRC)/gpl-3.0.tex
|
55 |
|
|
latex $(DSRC)/gpl-3.0.tex
|
56 |
|
|
@# Run twice, to get any cross referencing right
|
57 |
|
|
latex $(DSRC)/gpl-3.0.tex
|
58 |
|
|
@# Convert from a device independent file to a postscript file
|
59 |
|
|
dvips -q -z -t letter -P pdf -o gpl-3.0.ps gpl-3.0.dvi
|
60 |
|
|
@# Convert from postscript to PDF
|
61 |
|
|
ps2pdf -dAutoRotatePages=/All gpl-3.0.ps gpl-3.0.pdf
|
62 |
|
|
@# Remove the latex generated files that are no longer needed. Remove
|
63 |
|
|
@# this line if you are struggling with any kind of errors, as the log
|
64 |
|
|
@# file may be valuable to you
|
65 |
|
|
rm gpl-3.0.dvi gpl-3.0.log gpl-3.0.aux gpl-3.0.ps
|
66 |
|
|
|
67 |
|
|
spec.pdf: $(DSRC)/spec.tex $(DSRC)/gqtekspec.cls
|
68 |
|
|
cd $(DSRC)/; latex spec.tex
|
69 |
|
|
@# Run twice, to get any cross referencing right
|
70 |
|
|
cd $(DSRC)/; latex spec.tex
|
71 |
|
|
@# Convert from a device independent file to a postscript file
|
72 |
|
|
dvips -q -z -t letter -P pdf -o spec.ps $(DSRC)/spec.dvi
|
73 |
|
|
@# Convert from postscript to PDF
|
74 |
|
|
ps2pdf -dAutoRotatePages=/All spec.ps spec.pdf
|
75 |
|
|
@# Remove the latex generated files that are no longer needed. Remove
|
76 |
|
|
@# these next lines if you are struggling with any kind of errors, as
|
77 |
|
|
@# they might help you figure out what is going wrong.
|
78 |
|
|
rm $(DSRC)/spec.dvi $(DSRC)/spec.log
|
79 |
|
|
rm $(DSRC)/spec.aux $(DSRC)/spec.toc
|
80 |
|
|
rm $(DSRC)/spec.lot # $(DSRC)/spec.lof # List of figures not created
|
81 |
|
|
rm $(DSRC)/spec.out spec.ps
|
82 |
|
|
|