Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Network Interface Card
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Network Interface Card
Commits
cde272a9
Commit
cde272a9
authored
Dec 17, 2012
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: clean-up Makefile, templates, etc.
parent
4b6271e1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
226 additions
and
136 deletions
+226
-136
.gitignore
.gitignore
+1
-1
.gitignore
doc/.gitignore
+10
-0
Makefile
doc/Makefile
+42
-18
pandoc.latex
doc/pandoc.latex
+173
-92
readme.mkd
doc/readme.mkd
+0
-25
No files found.
.gitignore
View file @
cde272a9
*.*\#
\#*
.\#*
*
.*
~
*~
*.wlf
modelsim.ini
transcript
...
...
doc/.gitignore
0 → 100644
View file @
cde272a9
~
pdf/
tex/
*.aux
*.log
*.out
*.pdf
*.tex
*.toc
doc/Makefile
View file @
cde272a9
SRC
=
$
(
wildcard
*
.mkd
)
PDF
=
$
(
addprefix pdfs/,
$
(
SRC:.mkd
=
.pdf
))
TEX
=
$
(
SRC:.mkd
=
.tex
)
OPTIONS
=
-f
markdown
--toc
--number-sections
--smart
########################################################################
## Makefile to generate multiple document from the same markdown file
## using pandoc software:
##
## References:
##
## Authors:
## - Benoit Rat (Seven Solutions, www.sevensols.com)
##
## GNU Lesser General Public License Usage
## This file may be used under the terms of the GNU Lesser
## General Public License version 2.1 as published by the Free Software
## Foundation and appearing in the file LICENSE.LGPL included in the
## packaging of this file. Please review the following information to
## ensure the GNU Lesser General Public License version 2.1 requirements
## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
########################################################################
## Obtaining the proper file
SRC
=
$
(
wildcard
*
.md
)
PDF
=
$
(
addprefix pdf/,
$
(
SRC:.md
=
.pdf
))
TEX
=
$
(
SRC:.md
=
.tex
)
## Pandoc arguments
OPTIONS
=
-f
markdown
--toc
--number-sections
--smart
--reference-links
TEMPLATE
=
pandoc.latex
...
...
@@ -10,28 +31,31 @@ ifneq "$(TEMPLATE)" ""
TEMPLATEARG
=
--template
=
$(TEMPLATE)
endif
#--highlight-style=pygments (the default), kate, monochrome, espresso, haddock, and tango
#-V highlight-bg=true
## Main targets
all
:
$(PDF)
tex
:
$(TEX)
pdf
:
$(PDF)
#--highlight-style=pygments (the default), kate, monochrome, espresso, haddock, and tango
#-V highlight-bg=true
## Special targets to create directory
DIR_%
:
mkdir
-p
$
(
subst DIR_,,
$@
)
pdfs/%.pdf
:
%.mkd Makefile $(TEMPLATE)
@
echo
"
$
(dir
$@
)
$<
$^
$(PDF)
"
pdf/%.pdf
:
%.md Makefile $(TEMPLATE) DIR_pdf
pandoc
$(OPTIONS)
--latex-engine
=
xelatex
--highlight-style
=
haddock
$(TEMPLATEARG)
\
-V
lang
=
english
-V
fontsize
=
11pt
-V
documentclass
=
article
-V
bg-color
=
238,245,240
-o
$@
$<
%.tex
:
%.mkd Makefile $(TEMPLATE)
%.tex
:
%.md Makefile $(TEMPLATE)
@
echo
"
$
(dir
$@
)
$<
$^
$(TEX)
"
pandoc
$(OPTIONS)
--highlight-style
=
haddock
$(TEMPLATEARG)
\
-V
lang
=
english
-V
fontsize
=
11pt
-V
documentclass
=
article
-o
$@
$
(
@:.tex
=
.mkd
)
test
:
test.mkd Makefile $(TEMPLATE)
pandoc
$(OPTIONS)
--latex-engine
=
xelatex
--highlight-style
=
haddock
$(TEMPLATEARG)
\
-V
lang
=
english
-V
fontsize
=
11pt
-V
documentclass
=
article
-o
$@
.pdf
$@
.mkd
-V
lang
=
english
-V
fontsize
=
11pt
-V
documentclass
=
article
-o
$@
$<
.PHONY
:
clean
clean
:
rm
-f
pdfs/
*
.pdf
*
~
*
.tex
*
.log
rm
-f
pdf/
*
.pdf
*
~
*
.tex
*
.log
doc/pandoc.latex
View file @
cde272a9
This diff is collapsed.
Click to expand it.
doc/readme.mkd
deleted
100644 → 0
View file @
4b6271e1
% readme
% Javier Díaz, UGR-7S
% 21 Jun. 2012
Required software
=========================
First install
sudo apt-get install texlive-xetex
sudo apt-get install texlive-xetex
Document compilation
=====================
use make command or
pandoc --toc -o wr-nic.pdf wr-nic.mkd
Additional info
=====================
Find peripherals register map from wbgen2 tool on file NIC_peripheral_registers.tar.gz.
Problems?
------------
Check latex tools are installed and use command texhash
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment