mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
make userguide both compilable with make and from the file in the manual/ directory
This commit is contained in:
parent
f156699d61
commit
bf7b6ed92b
1 changed files with 11 additions and 3 deletions
14
Makefile
14
Makefile
|
|
@ -18,7 +18,12 @@ VERSIONDATENEXT = $(shell date +"%Y\/%m\/%d")
|
||||||
TARBALL=moderncv-$(VERSIONNEXT).tar
|
TARBALL=moderncv-$(VERSIONNEXT).tar
|
||||||
|
|
||||||
EXAMPLESDIR = examples
|
EXAMPLESDIR = examples
|
||||||
MANUAL = $(MANUALDIR)/moderncv_userguide.tex
|
# MANUALTEX is used by the userguide method that operates in the
|
||||||
|
# $(MANUALDIR) folder. MANUAL is used by methods operating in
|
||||||
|
# the $(MODERNCVDIR) folder. This is to ensuer that the userguide
|
||||||
|
# is also buildable within the manual folder.
|
||||||
|
MANUALTEX = moderncv_userguide.tex
|
||||||
|
MANUAL = $(MANUALDIR)/$(MANUALTEX)
|
||||||
TEMPLATE = $(MODERNCVDIR)/template.tex
|
TEMPLATE = $(MODERNCVDIR)/template.tex
|
||||||
TEMPLATEBIB = publications.bib
|
TEMPLATEBIB = publications.bib
|
||||||
TEMPLATEBASE = $(basename $(TEMPLATE))
|
TEMPLATEBASE = $(basename $(TEMPLATE))
|
||||||
|
|
@ -70,8 +75,11 @@ templates: $(TEMPLATE) $(TEMPLATEBIB)
|
||||||
userguide: templates $(MANUAL)
|
userguide: templates $(MANUAL)
|
||||||
# build the user guide. Since the guide includes the template examples, we
|
# build the user guide. Since the guide includes the template examples, we
|
||||||
# build those first by calling the templates rule.
|
# build those first by calling the templates rule.
|
||||||
lualatex --output-directory=$(MANUALDIR) $(MANUAL)
|
cd $(MANUALDIR)
|
||||||
lualatex --output-directory=$(MANUALDIR) $(MANUAL)
|
./format_files_for_userguide.py
|
||||||
|
lualatex $(MANUALTEX)
|
||||||
|
lualatex $(MANUALTEX)
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
|
||||||
version:
|
version:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue