Commit f94a9b43 authored by Roland Levillain's avatar Roland Levillain
Browse files

Improve dependencies of some documentation products.

	* doc/ref_guide/ref_guide.mk (ref_guide_dependencies):
	New variable.
	Use it to define dependencies of...
	($(REF_GUIDE_HH), $(REF_GUIDE_PDF)):
	...these targets.
	* doc/technical/technical.mk (technical_dependencies):
	New variable.
	Use it to define dependencies of...
	($(TECHNICAL_HH), $(TECHNICAL_PDF)):
	...these targets.
	* doc/tutorial/tutorial.mk (tutorial_dependencies):
	New variable.
	Use it to define dependencies of...
	($(TUTORIAL_HH), $(TUTORIAL_PDF)):
	...these targets.
parent 40ff7438
2010-03-12 Roland Levillain <roland@lrde.epita.fr>
Improve dependencies of some documentation products.
* doc/ref_guide/ref_guide.mk (ref_guide_dependencies):
New variable.
Use it to define dependencies of...
($(REF_GUIDE_HH), $(REF_GUIDE_PDF)):
...these targets.
* doc/technical/technical.mk (technical_dependencies):
New variable.
Use it to define dependencies of...
($(TECHNICAL_HH), $(TECHNICAL_PDF)):
...these targets.
* doc/tutorial/tutorial.mk (tutorial_dependencies):
New variable.
Use it to define dependencies of...
($(TUTORIAL_HH), $(TUTORIAL_PDF)):
...these targets.
2010-03-12 Roland Levillain <roland@lrde.epita.fr> 2010-03-12 Roland Levillain <roland@lrde.epita.fr>
   
Revamp the Makefile machinery in milena/doc/examples/. Revamp the Makefile machinery in milena/doc/examples/.
...@@ -27,6 +27,15 @@ ref-guide: ref-guide-html ref-guide-pdf ...@@ -27,6 +27,15 @@ ref-guide: ref-guide-html ref-guide-pdf
ref_guide_dir = $(doc_dir)/ref_guide ref_guide_dir = $(doc_dir)/ref_guide
# FIXME: Check these dependencies.
# 1. They might be redundant.
# 2. It'd be better to depend on actual files rather than timestamps
# correponding to a bunch of files.
ref_guide_dependencies = \
$(doc_dir)/split-examples.stamp \
$(doc_dir)/split-outputs.stamp \
$(doc_dir)/figures.stamp
# FIXME: As in milena/doc/Makefile.am, we should probably strip # FIXME: As in milena/doc/Makefile.am, we should probably strip
# $(srcdir) prefixes from target variables, e.g. instead of: # $(srcdir) prefixes from target variables, e.g. instead of:
# #
...@@ -59,14 +68,14 @@ ref_guide_dir = $(doc_dir)/ref_guide ...@@ -59,14 +68,14 @@ ref_guide_dir = $(doc_dir)/ref_guide
# files. # files.
REF_GUIDE_HH = $(ref_guide_dir)/ref_guide.hh REF_GUIDE_HH = $(ref_guide_dir)/ref_guide.hh
ref-guide-html: $(REF_GUIDE_HH) ref-guide-html: $(REF_GUIDE_HH)
$(REF_GUIDE_HH): $(ref_guide_dir)/ref_guide.tex $(doc_dir)/figures.stamp $(REF_GUIDE_HH): $(ref_guide_dir)/ref_guide.tex $(ref_guide_dependencies)
$(doc_dir)/tools/todoxygen.sh $< $(ref_guide_dir) $(doc_dir) $(doc_dir)/tools/todoxygen.sh $< $(ref_guide_dir) $(doc_dir)
# Final product. # Final product.
REF_GUIDE_PDF = $(ref_guide_dir)/ref_guide.pdf REF_GUIDE_PDF = $(ref_guide_dir)/ref_guide.pdf
ref-guide-pdf: $(REF_GUIDE_PDF) ref-guide-pdf: $(REF_GUIDE_PDF)
$(REF_GUIDE_PDF): $(ref_guide_dir)/ref_guide.tex $(doc_dir)/figures.stamp $(REF_GUIDE_PDF): $(ref_guide_dir)/ref_guide.tex $(ref_guide_dependencies)
TEXINPUTS=$(ref_guide_TEXINPUTS) pdflatex $< TEXINPUTS=$(ref_guide_TEXINPUTS) pdflatex $<
TEXINPUTS=$(ref_guide_TEXINPUTS) pdflatex $< TEXINPUTS=$(ref_guide_TEXINPUTS) pdflatex $<
TEXINPUTS=$(ref_guide_TEXINPUTS) pdflatex $< \ TEXINPUTS=$(ref_guide_TEXINPUTS) pdflatex $< \
......
...@@ -27,6 +27,11 @@ technical: technical-html technical-pdf ...@@ -27,6 +27,11 @@ technical: technical-html technical-pdf
technical_dir = $(doc_dir)/technical technical_dir = $(doc_dir)/technical
# FIXME: Check these dependencies. And it'd be better to depend on
# actual files rather than timestamps correponding to a bunch of
# files.
technical_dependencies = $(doc_dir)/figures.stamp
# FIXME: As in milena/doc/Makefile.am, we should probably strip # FIXME: As in milena/doc/Makefile.am, we should probably strip
# $(srcdir) prefixes from target variables, e.g. instead of: # $(srcdir) prefixes from target variables, e.g. instead of:
# #
...@@ -59,14 +64,14 @@ technical_dir = $(doc_dir)/technical ...@@ -59,14 +64,14 @@ technical_dir = $(doc_dir)/technical
# about `.html' files. # about `.html' files.
TECHNICAL_HH = $(technical_dir)/technical.hh TECHNICAL_HH = $(technical_dir)/technical.hh
technical-html: $(TECHNICAL_HH) technical-html: $(TECHNICAL_HH)
$(TECHNICAL_HH): $(technical_dir)/technical.tex $(doc_dir)/figures.stamp $(TECHNICAL_HH): $(technical_dir)/technical.tex $(technical_dependencies)
$(doc_dir)/tools/todoxygen.sh $< $(technical_dir) $(doc_dir) $(doc_dir)/tools/todoxygen.sh $< $(technical_dir) $(doc_dir)
# Final product. # Final product.
TECHNICAL_PDF = $(technical_dir)/technical.pdf TECHNICAL_PDF = $(technical_dir)/technical.pdf
technical-pdf: $(TECHNICAL_PDF) technical-pdf: $(TECHNICAL_PDF)
$(TECHNICAL_PDF): $(technical_dir)/technical.tex $(doc_dir)/figures.stamp $(TECHNICAL_PDF): $(technical_dir)/technical.tex $(technical_dependencies)
TEXINPUTS=$(technical_TEXINPUTS) pdflatex $< TEXINPUTS=$(technical_TEXINPUTS) pdflatex $<
TEXINPUTS=$(technical_TEXINPUTS) pdflatex $< TEXINPUTS=$(technical_TEXINPUTS) pdflatex $<
TEXINPUTS=$(technical_TEXINPUTS) pdflatex $< \ TEXINPUTS=$(technical_TEXINPUTS) pdflatex $< \
......
...@@ -27,6 +27,15 @@ tutorial: tutorial-html tutorial-pdf ...@@ -27,6 +27,15 @@ tutorial: tutorial-html tutorial-pdf
tutorial_dir = $(doc_dir)/tutorial tutorial_dir = $(doc_dir)/tutorial
# FIXME: Check these dependencies.
# 1. They might be redundant.
# 2. It'd be better to depend on actual files rather than timestamps
# correponding to a bunch of files.
tutorial_dependencies = \
$(doc_dir)/split-examples.stamp \
$(doc_dir)/split-outputs.stamp \
$(doc_dir)/figures.stamp
# FIXME: As in milena/doc/Makefile.am, we should probably strip # FIXME: As in milena/doc/Makefile.am, we should probably strip
# $(srcdir) prefixes from target variables, e.g. instead of: # $(srcdir) prefixes from target variables, e.g. instead of:
# #
...@@ -59,14 +68,13 @@ tutorial_dir = $(doc_dir)/tutorial ...@@ -59,14 +68,13 @@ tutorial_dir = $(doc_dir)/tutorial
# files. # files.
TUTORIAL_HH = $(tutorial_dir)/tutorial.hh TUTORIAL_HH = $(tutorial_dir)/tutorial.hh
tutorial-html: $(TUTORIAL_HH) tutorial-html: $(TUTORIAL_HH)
$(TUTORIAL_HH): $(tutorial_dir)/tutorial.tex $(doc_dir)/figures.stamp $(TUTORIAL_HH): $(tutorial_dir)/tutorial.tex $(tutorial_dependencies)
$(doc_dir)/tools/todoxygen.sh $< $(tutorial_dir) $(doc_dir) $(doc_dir)/tools/todoxygen.sh $< $(tutorial_dir) $(doc_dir)
# Final product. # Final product.
TUTORIAL_PDF = $(tutorial_dir)/tutorial.pdf TUTORIAL_PDF = $(tutorial_dir)/tutorial.pdf
tutorial-pdf: $(TUTORIAL_PDF) tutorial-pdf: $(TUTORIAL_PDF)
$(TUTORIAL_PDF): $(tutorial_dir)/tutorial.tex $(doc_dir)/figures.stamp $(TUTORIAL_PDF): $(tutorial_dir)/tutorial.tex $(tutorial_dependencies)
TEXINPUTS=$(tutorial_TEXINPUTS) pdflatex $< TEXINPUTS=$(tutorial_TEXINPUTS) pdflatex $<
TEXINPUTS=$(tutorial_TEXINPUTS) pdflatex $< TEXINPUTS=$(tutorial_TEXINPUTS) pdflatex $<
TEXINPUTS=$(tutorial_TEXINPUTS) pdflatex $< \ TEXINPUTS=$(tutorial_TEXINPUTS) pdflatex $< \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment