|
@@ -107,41 +107,41 @@ chapters = \
|
|
|
chapters/api/sc_hypervisor/sc_hypervisor_usage.doxy
|
|
|
|
|
|
starpu_config.h: $(top_srcdir)/include/starpu_config.h.in
|
|
|
- sed 's/#undef \(.*\)/#define \1 1/' $< > $@
|
|
|
+ @sed 's/#undef \(.*\)/#define \1 1/' $< > $@
|
|
|
|
|
|
chapters/version.sty: $(chapters)
|
|
|
- for f in $(chapters) ; do \
|
|
|
+ @for f in $(chapters) ; do \
|
|
|
if test -f $(top_srcdir)/doc/doxygen/$$f ; then stat --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
|
|
|
done | sort -r | head -1 > timestamp_sty
|
|
|
- if test -s timestamp_sty ; then \
|
|
|
+ @if test -s timestamp_sty ; then \
|
|
|
LC_ALL=C date --date=@`cat timestamp_sty` +"%d %B %Y" > timestamp_sty_updated ;\
|
|
|
LC_ALL=C date --date=@`cat timestamp_sty` +"%B %Y" > timestamp_sty_updated_month ;\
|
|
|
fi
|
|
|
- if test -s timestamp_sty_updated ; then \
|
|
|
+ @if test -s timestamp_sty_updated ; then \
|
|
|
echo "\newcommand{\STARPUUPDATED}{"`cat timestamp_sty_updated`"}" > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
|
|
|
else \
|
|
|
echo "\newcommand{\STARPUUPDATED}{unknown date}" > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
|
|
|
fi
|
|
|
- echo "\newcommand{\STARPUVERSION}{$(VERSION)}" >> $(top_srcdir)/doc/doxygen/chapters/version.sty
|
|
|
- for f in timestamp_sty timestamp_sty_updated timestamp_sty_updated_month ; do \
|
|
|
+ @echo "\newcommand{\STARPUVERSION}{$(VERSION)}" >> $(top_srcdir)/doc/doxygen/chapters/version.sty
|
|
|
+ @for f in timestamp_sty timestamp_sty_updated timestamp_sty_updated_month ; do \
|
|
|
if test -f $$f ; then $(RM) $$f ; fi ;\
|
|
|
done
|
|
|
|
|
|
chapters/version.html: $(chapters)
|
|
|
- for f in $(chapters) ; do \
|
|
|
+ @for f in $(chapters) ; do \
|
|
|
if test -f $(top_srcdir)/doc/doxygen/$$f ; then stat --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
|
|
|
done | sort -r | head -1 > timestamp_html
|
|
|
- if test -s timestamp_html ; then \
|
|
|
+ @if test -s timestamp_html ; then \
|
|
|
LC_ALL=C date --date=@`cat timestamp_html` +"%d %B %Y" > timestamp_html_updated ;\
|
|
|
LC_ALL=C date --date=@`cat timestamp_html` +"%B %Y" > timestamp_html_updated_month ;\
|
|
|
fi
|
|
|
- echo "This manual documents the usage of StarPU version $(VERSION)." > $(top_srcdir)/doc/doxygen/chapters/version.html
|
|
|
- if test -s timestamp_html_updated ; then \
|
|
|
+ @echo "This manual documents the usage of StarPU version $(VERSION)." > $(top_srcdir)/doc/doxygen/chapters/version.html
|
|
|
+ @if test -s timestamp_html_updated ; then \
|
|
|
echo "Its contents was last updated on "`cat timestamp_html_updated`"." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
|
|
|
else \
|
|
|
echo "Its contents was last updated on <em>unknown_date</em>." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
|
|
|
fi
|
|
|
- for f in timestamp_html timestamp_html_updated timestamp_html_updated_month ; do \
|
|
|
+ @for f in timestamp_html timestamp_html_updated timestamp_html_updated_month ; do \
|
|
|
if test -f $$f ; then $(RM) $$f ; fi ;\
|
|
|
done
|
|
|
|
|
@@ -222,39 +222,39 @@ dox_inputs = $(DOX_CONFIG) \
|
|
|
$(top_srcdir)/sc_hypervisor/include/sc_hypervisor_policy.h
|
|
|
|
|
|
$(DOX_TAG): $(dox_inputs)
|
|
|
- rm -fr $(DOX_HTML_DIR) $(DOX_LATEX_DIR)
|
|
|
- $(DOXYGEN) $(DOX_CONFIG)
|
|
|
- sed -i 's/ModuleDocumentation <\/li>/<a class="el" href="modules.html">Modules<\/a>/' html/index.html
|
|
|
- sed -i 's/FileDocumentation <\/li>/<a class="el" href="files.html">Files<\/a>/' html/index.html
|
|
|
+ @rm -fr $(DOX_HTML_DIR) $(DOX_LATEX_DIR)
|
|
|
+ @$(DOXYGEN) $(DOX_CONFIG)
|
|
|
+ @sed -i 's/ModuleDocumentation <\/li>/<a class="el" href="modules.html">Modules<\/a>/' html/index.html
|
|
|
+ @sed -i 's/FileDocumentation <\/li>/<a class="el" href="files.html">Files<\/a>/' html/index.html
|
|
|
# comment for the line below: what we really want to do is to remove the line, but dy doing so, it avoids opening the interactive menu when browsing files
|
|
|
- if test -f html/navtree.js ; then sed -i 's/\[ "Files", "Files.html", null \]/\[ "", "Files.html", null \]/' html/navtree.js ; fi
|
|
|
- sed -i 's/.*"Files.html".*//' html/pages.html
|
|
|
- if test -f latex/main.tex ; then mv latex/main.tex latex/index.tex ; fi
|
|
|
+ @if test -f html/navtree.js ; then sed -i 's/\[ "Files", "Files.html", null \]/\[ "", "Files.html", null \]/' html/navtree.js ; fi
|
|
|
+ @sed -i 's/.*"Files.html".*//' html/pages.html
|
|
|
+ @if test -f latex/main.tex ; then mv latex/main.tex latex/index.tex ; fi
|
|
|
|
|
|
dist_pdf_DATA = $(DOX_PDF)
|
|
|
|
|
|
$(DOX_PDF): $(DOX_TAG) refman.tex
|
|
|
- cp $(top_srcdir)/doc/doxygen/chapters/version.sty $(DOX_LATEX_DIR)
|
|
|
- cp $(top_srcdir)/doc/doxygen/chapters/*pdf $(DOX_LATEX_DIR)
|
|
|
- cd $(DOX_LATEX_DIR); \
|
|
|
- rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
|
|
|
- sed -i -e 's/__env__/\\_Environment Variables!/' -e 's/\\-\\_\\-\\-\\_\\-env\\-\\_\\-\\-\\_\\-//' ExecutionConfigurationThroughEnvironmentVariables.tex ;\
|
|
|
- sed -i -e 's/__configure__/\\_Configure Options!/' -e 's/\\-\\_\\-\\-\\_\\-configure\\-\\_\\-\\-\\_\\-//' CompilationConfiguration.tex ;\
|
|
|
- sed -i s'/\\item Module\\-Documentation/\\item \\hyperlink{ModuleDocumentation}{Module Documentation}/' index.tex ;\
|
|
|
- sed -i s'/\\item File\\-Documentation/\\item \\hyperlink{FileDocumentation}{File Documentation}/' index.tex ;\
|
|
|
- $(PDFLATEX) refman.tex; \
|
|
|
- $(MAKEINDEX) refman.idx;\
|
|
|
- $(PDFLATEX) refman.tex; \
|
|
|
- done=0; repeat=5; \
|
|
|
- while test $$done = 0 -a $$repeat -gt 0; do \
|
|
|
+ @cp $(top_srcdir)/doc/doxygen/chapters/version.sty $(DOX_LATEX_DIR)
|
|
|
+ @cp $(top_srcdir)/doc/doxygen/chapters/*pdf $(DOX_LATEX_DIR)
|
|
|
+ @cd $(DOX_LATEX_DIR)
|
|
|
+ @rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out
|
|
|
+ @sed -i -e 's/__env__/\\_Environment Variables!/' -e 's/\\-\\_\\-\\-\\_\\-env\\-\\_\\-\\-\\_\\-//' ExecutionConfigurationThroughEnvironmentVariables.tex
|
|
|
+ @sed -i -e 's/__configure__/\\_Configure Options!/' -e 's/\\-\\_\\-\\-\\_\\-configure\\-\\_\\-\\-\\_\\-//' CompilationConfiguration.tex
|
|
|
+ @sed -i s'/\\item Module\\-Documentation/\\item \\hyperlink{ModuleDocumentation}{Module Documentation}/' index.tex
|
|
|
+ @sed -i s'/\\item File\\-Documentation/\\item \\hyperlink{FileDocumentation}{File Documentation}/' index.tex
|
|
|
+ @$(PDFLATEX) refman.tex
|
|
|
+ @$(MAKEINDEX) refman.idx
|
|
|
+ @$(PDFLATEX) refman.tex
|
|
|
+ @done=0; repeat=5
|
|
|
+ @while test $$done = 0 -a $$repeat -gt 0; do \
|
|
|
if $(EGREP) 'Rerun (LaTeX|to get cross-references right)' refman.log > /dev/null 2>&1; then \
|
|
|
$(PDFLATEX) refman.tex; \
|
|
|
repeat=`expr $$repeat - 1`; \
|
|
|
else \
|
|
|
done=1; \
|
|
|
fi; \
|
|
|
- done; \
|
|
|
- mv refman.pdf ../$(DOX_PDF)
|
|
|
+ done
|
|
|
+ @mv refman.pdf ../$(DOX_PDF)
|
|
|
|
|
|
CLEANFILES = $(DOX_TAG) starpu_config.h \
|
|
|
-r \
|