Salome HOME
Merge from V6_main 19/03/2013
[tools/medcoupling.git] / doc / doxygen / Makefile.am
index 22c098a1f293281b02e335c10d1cc5c2520fc714..10599e26c6693e8c1249959080e0f824fdcd6c0c 100644 (file)
@@ -23,9 +23,18 @@ include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
 DOX_INPUT_FILE = Doxyfile_med_user
 
+DOX_EXTRA_FILES = medcouplingexamples.dox
+
 guidocdir = $(docdir)/gui/MED
 guidoc_DATA = images/head.png
 
+# documentation
+html-local: $(DOXY_INPUT_FILE) $(DOX_EXTRA_FILES)
+       @doxygen $(DOX_INPUT_FILE)
+
+%.dox: %.doxy
+       @python $(srcdir)/BuildPyExamplesFromCPP.py $< $(top_builddir)/doc/doxygen
+
 install-data-local : html-local
        @if test -d doc_ref_user; then                                  \
        $(INSTALL) -d $(DESTDIR)$(docdir)/gui/MED;                      \
@@ -41,7 +50,7 @@ uninstall-local:
        rm -rf $(DESTDIR)$(docdir)/gui/MED
 
 clean-local:
-       rm -rf doc_ref_user log_user
+       rm -rf doc_ref_user log_user $(DOX_EXTRA_FILES)
 
 EXTRA_DIST += figures \
              main.dox \
@@ -69,4 +78,7 @@ EXTRA_DIST += figures \
              tools.dox \
              static/footer.html \
              static/doxygen.css \
-             images
+             images \
+             BuildPyExamplesFromCPP.py
+
+EXTRA_DIST += $(DOX_EXTRA_FILES:%.dox=%.doxy)