only refresh documentation if needed

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@605 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2011-11-01 20:35:30 +00:00
parent c7761d5571
commit 91896cce95
6 changed files with 25 additions and 13 deletions

View File

@@ -15,8 +15,11 @@ do_subst = sed \
EXTRA_DIST = README.rst.in README.rst autotools.rst autotools.rst.in questions.rst questions.rst.in
.PHONY: doc
doc:
$(do_subst) < autotools.rst.in > autotools.rst
$(do_subst) < questions.rst.in > questions.rst
$(do_subst) < README.rst.in > README.rst
touch doc
clean-local:
rm -f doc README.rst autotools.rst questions.rst

View File

@@ -14,10 +14,10 @@
import sys, os, breathe
from sphinxcontrib.doxylink import doxylink
os.system("make doc -C npa >/dev/null")
os.system("make doc -C virtualsmartcard >/dev/null")
os.system("make doc -C ccid >/dev/null")
os.system("make doc -C pcsc-relay >/dev/null")
os.system("make doc -C npa")
os.system("make doc -C virtualsmartcard")
os.system("make doc -C ccid")
os.system("make doc -C pcsc-relay")
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the

View File

@@ -15,11 +15,14 @@ do_subst = sed \
EXTRA_DIST = README.rst.in README.rst Doxyfile.in example.c autotools.rst autotools.rst.in questions.rst questions.rst.in
.PHONY: doc
doc:
doc: $(top_srcdir)/src/npa/*.h
$(do_subst) < Doxyfile.in > Doxyfile
$(DOXYGEN) Doxyfile
touch api.rst
$(do_subst) < autotools.rst.in > autotools.rst
$(do_subst) < questions.rst.in > questions.rst
$(do_subst) < README.rst.in > README.rst
touch doc
clean-local:
rm -f doc README.rst autotools.rst questions.rst Doxyfile

View File

@@ -31,7 +31,7 @@ Secure Messaging (SM)
=====================
The complete documentation can be found `here
<_static/doxygen-npa/group__sm.html>`_.
<_static/doxygen-npa/group__sm.html>`__.
-----
Types
@@ -49,7 +49,7 @@ Interface to German identity card (neuer Personalausweis, nPA)
==============================================================
The complete documentation can be found `here
<_static/doxygen-npa/group__npa.html>`_.
<_static/doxygen-npa/group__npa.html>`__.
-----
Types

View File

@@ -15,8 +15,11 @@ do_subst = sed \
EXTRA_DIST = README.rst.in README.rst autotools.rst.in questions.rst.in autotools.rst questions.rst
.PHONY: doc
doc:
$(do_subst) < autotools.rst.in > autotools.rst
$(do_subst) < questions.rst.in > questions.rst
$(do_subst) < README.rst.in > README.rst
touch doc
clean-local:
rm -f doc README.rst autotools.rst questions.rst

View File

@@ -19,9 +19,12 @@ EXTRA_DIST = README.rst.in README.rst autotools.rst.in questions.rst.in autotool
dist_noinst_SCRIPTS = generate_modules.py
.PHONY: doc
doc:
doc: $(top_srcdir)/src/vpicc/virtualsmartcard/*.py $(top_srcdir)/src/vpicc/virtualsmartcard/cards/*.py
$(do_subst) < autotools.rst.in > autotools.rst
$(do_subst) < questions.rst.in > questions.rst
$(do_subst) < README.rst.in > README.rst
./generate_modules.py $(top_srcdir)/src/vpicc --dest-dir=api --suffix=rst --no-toc -1
./generate_modules.py $(top_srcdir)/src/vpicc --dest-dir=api --suffix=rst --no-toc -1 -f
touch doc
clean-local:
rm -f doc README.rst autotools.rst questions.rst