1# Copyright (c) 2011 FFLAS-FFPACK 2# written by Brice Boyer (briceboyer) <boyer.brice@gmail.com> 3# adapted from LinBox documentation 4# 5# ========LICENCE======== 6# This file is part of the library FFLAS-FFPACK. 7# 8# FFLAS-FFPACK is free software: you can redistribute it and/or modify 9# it under the terms of the GNU Lesser General Public 10# License as published by the Free Software Foundation; either 11# version 2.1 of the License, or (at your option) any later version. 12# 13# This library is distributed in the hope that it will be useful, 14# but WITHOUT ANY WARRANTY; without even the implied warranty of 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16# Lesser General Public License for more details. 17# 18# You should have received a copy of the GNU Lesser General Public 19# License along with this library; if not, write to the Free Software 20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21# ========LICENCE======== 22#/ 23 24 25if FFLASFFPACK_BUILD_DOC 26USE_TARGETS = docs 27INSTALL_TARGETS = install-doc 28endif 29docdir=$(FFLASFFPACK_DOC_PATH) 30 31#man1_MANS = fflas-ffpack-config.1 32 33all all-local: $(USE_TARGETS) 34 35install install-data-local: $(USE_TARGETS) $(INSTALL_TARGETS) 36 37docs: 38 sed -i 's/^\\version.*/\\version\ $(VERSION)/' mainpage.doxy 39 if test -d fflas-ffpack-html ; then echo exists; else mkdir fflas-ffpack-html ; fi 40 if test -d fflas-ffpack-dev-html ; then echo exists; else mkdir fflas-ffpack-dev-html ; fi 41 cp ../INSTALL fflas-ffpack-html/ 42 cp ../COPYING fflas-ffpack-html/ 43 cp ../AUTHORS fflas-ffpack-html/ 44 doxygen Doxyfile 45 46docs_dev: 47 make docs 48 cp ../INSTALL fflas-ffpack-dev-html/ 49 cp ../COPYING fflas-ffpack-dev-html/ 50 cp ../AUTHORS fflas-ffpack-dev-html/ 51 doxygen DoxyfileDev 52 53# cp tutorial.html fflas-ffpack-dev-html/ 54# cp install-dist.html fflas-ffpack-dev-html/ 55# cp install-dev.html fflas-ffpack-dev-html/ 56 57 58 59install-doc: 60 mkdir -p $(DESTDIR)/$(docdir) 61 cp -rp fflas-ffpack-html $(DESTDIR)/$(docdir)/fflas-ffpack-html 62 cp -rp fflas-ffpack-dev-html $(DESTDIR)/$(docdir)/fflas-ffpack-dev-html 63 cp -p fflas-ffpack.html $(DESTDIR)/$(docdir)/fflas-ffpack.html 64 65EXTRA_DIST= \ 66 Doxyfile \ 67 DoxyfileDev \ 68 mainpage.doxy \ 69 fflas-ffpack.html 70# \ 71# doc.doxy \ 72# tutorial.doxy \ 73# fflas-ffpack.html \ 74# fflas-ffpack-config.1 \ 75#tutorial.html \ 76# install-dev.html \ 77# index-dev.html \ 78# install-dist.html 79 80 81clean-local : 82 rm -rf fflas-ffpack-html 83 rm -rf fflas-ffpack-dev-html 84 85 86