Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Starting Kit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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 Starting Kit
Commits
4a8a93d2
Commit
4a8a93d2
authored
Jan 16, 2013
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Correct date and add git version to PDF
parent
abecca3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Makefile
doc/Makefile
+2
-2
No files found.
doc/Makefile
View file @
4a8a93d2
...
...
@@ -33,6 +33,7 @@ endif
## Obtain the version ($ is replaced by $$)
VERSION
=
$(
shell
git describe
--always
--dirty
=
+ |
sed
's;^.*-\([v0-9\.]*\)\([a-z0-9\-+]*\)$$;\1\2;'
)
DATE
=
$(
shell
date
+
"%d %b. %Y"
)
#--highlight-style=pygments (the default), kate, monochrome, espresso, haddock, and tango
#-V highlight-bg=true
...
...
@@ -48,8 +49,7 @@ DIR_%:
pdf/%.pdf
:
%.md Makefile $(TEMPLATE) DIR_pdf
pandoc
$(OPTIONS)
--latex-engine
=
xelatex
--listings
--highlight-style
=
haddock
$(TEMPLATEARG)
\
-V
lang
=
english
-V
fontsize
=
11pt
-V
documentclass
=
article
-V
bg-color
=
238,245,240
-o
$@
$<
cp
$@
$
(
subst .pdf,-
$(VERSION)
.pdf,
$@
)
-V
lang
=
english
-V
fontsize
=
11pt
-V
documentclass
=
article
-V
bg-color
=
238,245,240
-V
date
=
"
$(DATE)
-
$(VERSION)
"
-o
$@
$<
%.tex
:
%.md Makefile $(TEMPLATE)
@
echo
"
$(VERSION)
@
$
(notdir
$@
)
$@
<
$<
^
$^
"
...
...
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