1
## Process this file with automake to produce Makefile.in
3
#-------------------------------------------------------------------------------
5
# This file is part of Code_Saturne, a general-purpose CFD tool.
7
# Copyright (C) 1998-2011 EDF S.A.
9
# This program is free software; you can redistribute it and/or modify it under
10
# the terms of the GNU General Public License as published by the Free Software
11
# Foundation; either version 2 of the License, or (at your option) any later
14
# This program is distributed in the hope that it will be useful, but WITHOUT
15
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
19
# You should have received a copy of the GNU General Public License along with
20
# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
21
# Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
#-------------------------------------------------------------------------------
29
# Other LaTex document
37
EXTRA_DIST = $(TEXMAIN) $(TEXOTHERS) $(TEXINPUTFILES)
39
# Subdirectories (order is important)
43
# Environment variables for LaTeX
45
TEXINPUTS = $(top_srcdir)/doc/style/:$(top_builddir)/doc/style/:$(srcdir)//:$(builddir)//:
46
BIBINPUTS = $(top_srcdir)/doc/style/:
47
BSTINPUTS = $(top_srcdir)/doc/style/:
51
PDFLATEX = export TEXINPUTS="$(TEXINPUTS)"; pdflatex
52
BIBTEX = export BIBINPUTS="$(BIBINPUTS)"; bibtex
54
# Generated documents (pdf and index files)
56
PDFMAIN = $(TEXMAIN:.tex=.pdf)
58
# One redefines here the standard pdf targets of automake
59
# so that they handle generation from LaTeX documents.
62
@$(PDFLATEX) $(TEXMAIN)
63
@$(PDFLATEX) $(TEXMAIN)
64
@$(PDFLATEX) $(TEXMAIN)
67
-rm -f *.out *.log *.aux *.toc *.lof *.lot \
68
*.ilg *.idx *.bbl *.blg *.ind *.sym *.nsy
71
$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
72
$(INSTALL_DATA) $(PDFMAIN) $(DESTDIR)$(pdfdir)
74
distclean-local: clean-local
77
# Generate the documentation at dist stage so that the user do not need
78
# to have LaTeX (and mandatory tools).
81
$(INSTALL_DATA) $(PDFMAIN) $(distdir)
83
# Install the documentation if available
86
if test -f $(srcdir)/$(PDFMAIN); then \
87
$(MKDIR_P) "$(DESTDIR)$(pdfdir)"; \
88
$(INSTALL_DATA) $(srcdir)/$(PDFMAIN) $(DESTDIR)$(pdfdir); \
94
test -d "$(DESTDIR)$(pdfdir)" || exit 0; \
95
test -n "$$files" || exit 0; \
96
echo " ( cd '$(DESTDIR)$(pdfdir)' && rm -f" $$files ")"; \
97
cd "$(DESTDIR)$(pdfdir)" && rm -f $$files
98
rmdir $(pdfdir) || exit 0