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

Generate the list of figures in the documentation.

	* doc/Makefile.am ($(srcdir)/figures.mk): New rule.
	(regen-figures-mk): New phony target.
	(regen-am): Invoke regen-figures-mk.
	* doc/figures.mk: Regen.
parent 642d87ac
2010-03-22 Roland Levillain <roland@lrde.epita.fr>
Generate the list of figures in the documentation.
* doc/Makefile.am ($(srcdir)/figures.mk): New rule.
(regen-figures-mk): New phony target.
(regen-am): Invoke regen-figures-mk.
* doc/figures.mk: Regen.
2010-03-20 Roland Levillain <roland@lrde.epita.fr>
 
Add a script to generate doc/figures.mk.
......@@ -94,9 +94,13 @@ DOC_PACKAGES = doxyfuns.sty milena.sty
## Figures. ##
## --------- ##
# Generate a Makefile helper containing the list of generated figures.
EXTRA_DIST += gen-figures-mk
# Generated figures.
$(srcdir)/figures.mk: $(srcdir)/gen-figures-mk
rm -f $@.tmp
cd $(srcdir) && ./gen-figures-mk >figures.mk.tmp
mv -f $@.tmp $@
chmod -w $@
include $(srcdir)/figures.mk
# FIXME: $(FIGURES) is not added to EXTRA_DIST (though it is added to
# MAINTAINERCLEANFILES), because its contents is already in EXTRA_DIST
......@@ -104,6 +108,13 @@ include $(srcdir)/figures.mk
# variables may be removed someday (see FIXME below).
MAINTAINERCLEANFILES = $(FIGURES)
.PHONY: regen-figures-mk
regen-figures-mk:
rm -f $(srcdir)/figures.mk.tmp
cd $(srcdir) && ./gen-figures-mk >figures.mk.tmp
mv -f $(srcdir)/figures.mk.tmp $(srcdir)/figures.mk
chmod -w $(srcdir)/figures.mk
# This image seems to be used nowhere.
MORE_FIGURES = figures/accu_image_morpher_big_picture.pdf
EXTRA_DIST += $(MORE_FIGURES)
......@@ -953,6 +964,7 @@ regen-split-outputs-mk:
EXTRA_DIST += generate_dist_files.sh
include $(top_srcdir)/build-aux/regen-recursive.mk
regen-am:
$(MAKE) $(AM_MAKEFLAGS) regen-figures-mk
$(MAKE) $(AM_MAKEFLAGS) regen-pbm-figures-mk
$(MAKE) $(AM_MAKEFLAGS) regen-pgm-figures-mk
$(MAKE) $(AM_MAKEFLAGS) regen-ppm-figures-mk
......
## Figures' dependencies. -*- Makefile-Automake -*-
## Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE).
##
## This file is part of Olena.
##
## Olena is free software: you can redistribute it and/or modify it under
## the terms of the GNU General Public License as published by the Free
## Software Foundation, version 2 of the License.
##
## Olena is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Olena. If not, see <http://www.gnu.org/licenses/>.
## Generated by gen-figures-mk. Do not edit by hand.
## Figures depend on the timestamp associated with their generator.
## See also examples-outputs.mk.
## FIXME: Generate this file.
##
## It'd be cool if programs themselves could generate a list of their
## outputs (as a side effect) or at least if the extraction of this
## list from the source file was straightforward.
EXTEND_FIGURES = \
$(srcdir)/figures/extend-1.ppm \
$(srcdir)/figures/extend-2.ppm \
......
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