| 1 |
190 |
dgisselq |
################################################################################
|
| 2 |
|
|
##
|
| 3 |
|
|
## Filename: Makefile
|
| 4 |
|
|
##
|
| 5 |
|
|
## Project: Zip CPU -- a small, lightweight, RISC CPU soft core
|
| 6 |
|
|
##
|
| 7 |
|
|
## Purpose:
|
| 8 |
|
|
##
|
| 9 |
|
|
##
|
| 10 |
|
|
## Creator: Dan Gisselquist, Ph.D.
|
| 11 |
|
|
## Gisselquist Technology, LLC
|
| 12 |
|
|
##
|
| 13 |
|
|
################################################################################
|
| 14 |
|
|
##
|
| 15 |
|
|
## Copyright (C) 2015-2016, Gisselquist Technology, LLC
|
| 16 |
|
|
##
|
| 17 |
|
|
## This program is free software (firmware): you can redistribute it and/or
|
| 18 |
|
|
## modify it under the terms of the GNU General Public License as published
|
| 19 |
|
|
## by the Free Software Foundation, either version 3 of the License, or (at
|
| 20 |
|
|
## your option) any later version.
|
| 21 |
|
|
##
|
| 22 |
|
|
## This program is distributed in the hope that it will be useful, but WITHOUT
|
| 23 |
|
|
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
|
| 24 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
| 25 |
|
|
## for more details.
|
| 26 |
|
|
##
|
| 27 |
|
|
## License: GPL, v3, as defined and found on www.gnu.org,
|
| 28 |
|
|
## http://www.gnu.org/licenses/gpl.html
|
| 29 |
|
|
##
|
| 30 |
|
|
##
|
| 31 |
|
|
################################################################################
|
| 32 |
|
|
##
|
| 33 |
|
|
##
|
| 34 |
68 |
dgisselq |
all: pdftex gpl-3.0.pdf spec.pdf
|
| 35 |
21 |
dgisselq |
DSRC := src
|
| 36 |
|
|
|
| 37 |
|
|
gpl-3.0.pdf: $(DSRC)/gpl-3.0.tex
|
| 38 |
|
|
latex $(DSRC)/gpl-3.0.tex
|
| 39 |
|
|
latex $(DSRC)/gpl-3.0.tex
|
| 40 |
|
|
dvips -q -z -t letter -P pdf -o gpl-3.0.ps gpl-3.0.dvi
|
| 41 |
|
|
ps2pdf -dAutoRotatePages=/All gpl-3.0.ps gpl-3.0.pdf
|
| 42 |
|
|
rm gpl-3.0.dvi gpl-3.0.log gpl-3.0.aux gpl-3.0.ps
|
| 43 |
|
|
|
| 44 |
68 |
dgisselq |
.PHONY: pdftex
|
| 45 |
|
|
pdftex:
|
| 46 |
106 |
dgisselq |
@cd gfx; bash -c "if [[ -e Makefile ]]; then make --no-print-directory; fi"
|
| 47 |
68 |
dgisselq |
|
| 48 |
21 |
dgisselq |
spec.pdf: $(DSRC)/spec.tex $(DSRC)/gqtekspec.cls $(DSRC)/GT.eps
|
| 49 |
|
|
cd $(DSRC)/; latex spec.tex
|
| 50 |
|
|
cd $(DSRC)/; latex spec.tex
|
| 51 |
202 |
dgisselq |
cd $(DSRC)/; latex spec.tex
|
| 52 |
24 |
dgisselq |
cd $(DSRC)/; dvips -q -z -t letter -P pdf -o ../spec.ps spec.dvi
|
| 53 |
21 |
dgisselq |
ps2pdf -dAutoRotatePages=/All spec.ps spec.pdf
|
| 54 |
69 |
dgisselq |
grep -i warning $(DSRC)/spec.log
|
| 55 |
21 |
dgisselq |
rm $(DSRC)/spec.dvi $(DSRC)/spec.log
|
| 56 |
|
|
rm $(DSRC)/spec.aux $(DSRC)/spec.toc
|
| 57 |
24 |
dgisselq |
rm $(DSRC)/spec.lot $(DSRC)/spec.lof
|
| 58 |
36 |
dgisselq |
rm $(DSRC)/spec.out spec.ps
|
| 59 |
21 |
dgisselq |
|
| 60 |
47 |
dgisselq |
zipos.pdf: $(DSRC)/zipos.tex $(DSRC)/gqtekspec.cls $(DSRC)/GT.eps
|
| 61 |
|
|
cd $(DSRC)/; latex zipos.tex
|
| 62 |
|
|
cd $(DSRC)/; latex zipos.tex
|
| 63 |
|
|
cd $(DSRC)/; dvips -q -z -t letter -P pdf -o ../zipos.ps zipos.dvi
|
| 64 |
|
|
ps2pdf -dAutoRotatePages=/All zipos.ps zipos.pdf
|
| 65 |
|
|
rm $(DSRC)/zipos.dvi $(DSRC)/zipos.log
|
| 66 |
|
|
rm $(DSRC)/zipos.aux $(DSRC)/zipos.toc
|
| 67 |
|
|
rm $(DSRC)/zipos.lot $(DSRC)/zipos.lof
|
| 68 |
|
|
rm $(DSRC)/zipos.out zipos.ps
|
| 69 |
|
|
|