Salome HOME
Integration of 0019971: A patch for cmake compilation.
[modules/kernel.git] / doc / Makefile.am
1 # Copyright (C) 2005  OPEN CASCADE, CEA, EDF R&D, LEG
2 #           PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 # -* Makefile *-
20 #
21 # Author : Paul RASCLE (EDF)
22 # Date : 06/02/2006
23 # $Header$
24 #
25
26 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
27
28 SUBDIRS = salome
29
30 # if RST2HTML_IS_OK
31 #   DOC_FILES = \
32 #       index.html \
33 #       UnitTests.html \
34 #       SALOME_Application.html \
35 #       INSTALL.html \
36 #       kernel_resources.html \
37 #       KERNEL_Services.html
38 #   CSS_FILE = rst.css
39 # endif
40
41 nodist_doc_DATA = $(DOC_FILES)
42
43 EXTRA_DIST=$(DOC_FILES:%.html=%.txt) $(CSS_FILE)
44
45 # Building html from restructured text files
46 STYLESHEET=$(CSS_FILE)
47 RST2HTML=@RST2HTML@
48 RSTOPTS=--output-encoding=latin1 --stylesheet=$(STYLESHEET)
49
50 %.html: %.txt
51         $(RST2HTML) $(RSTOPTS) $< $@
52
53 usr_docs:
54         (cd salome && $(MAKE) $(AM_MAKEFLAGS) usr_docs)
55
56 dev_docs:
57         (cd salome && $(MAKE) $(AM_MAKEFLAGS) dev_docs)