| 1 |
# guile-cairo |
| 2 |
# Copyright (C) 2007,2011 Andy Wingo <[email protected]> |
| 3 |
# |
| 4 |
# This program is free software: you can redistribute it and/or modify |
| 5 |
# it under the terms of the GNU Lesser General Public License as |
| 6 |
# published by the Free Software Foundation, either version 2 of the |
| 7 |
# License, or (at your option) any later version. |
| 8 |
# |
| 9 |
# This program is distributed in the hope that it will be useful, but |
| 10 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
# Lesser General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU Lesser General Public |
| 15 |
# License along with this program. If not, see |
| 16 |
# <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
www: clean-www guile-cairo.pdf guile-cairo-html |
| 19 |
find www -name 'index.scm' -print \ |
| 20 |
| while read f; do \ |
| 21 |
guile -l "$$f" -c '(make-index)' \ |
| 22 |
> `echo $$f | sed -e s,\.scm,\.html,`; \ |
| 23 |
done |
| 24 |
cp guile-cairo.pdf www/docs/ |
| 25 |
rm -rf www/docs/html |
| 26 |
cp -a guile-cairo/ www/docs/html |
| 27 |
|
| 28 |
WEB_REPO=cvs.sv.gnu.org:/web/guile-cairo |
| 29 |
IMPORT_TAG=git_$(shell git show-ref --head --hash HEAD) |
| 30 |
|
| 31 |
www-commit: www |
| 32 |
( cd www; cvs -d $(WEB_REPO) import -m 'make www in guile-cairo/docs' guile-cairo git $(IMPORT_TAG) ) |
| 33 |
|
| 34 |
clean-www: |
| 35 |
find www -name 'index.html' -print \ |
| 36 |
| while read f; do rm -f "$$f"; done |
| 37 |
|
| 38 |
clean: clean-www |
| 39 |
|
| 40 |
guile-cairo-html: |
| 41 |
makeinfo --html $(srcdir)/guile-cairo.texi |
| 42 |
|
| 43 |
include generate-docs.mk |
| 44 |
|
| 45 |
GUILE = $(top_builddir)/env guile |
| 46 |
cairo_docbook_xml_wildcard = $(CAIRO_XML_DIR)/cairo*.xml |
| 47 |
docbook_xml_files = $(wildcard $(cairo_docbook_xml_wildcard)) |
| 48 |
GTK_DOC_DEFUN_HEURISTICS_METHOD = heuristics |
| 49 |
GTK_DOC_DEFUN_HEURISTICS_ARGS = (cairo) |
| 50 |
|
| 51 |
EXTRA_DIST = README overrides.texi generate-docs.mk COPYING.docs COPYING.LGPL-2.1 COPYING.MPL-1.1 |
| 52 |
|
| 53 |
info_TEXINFOS=guile-cairo.texi |
| 54 |
guile_cairo_TEXINFOS=$(wildcard section-*.texi) $(wildcard defuns-*.texi) |