~ubuntu-branches/ubuntu/precise/code-saturne/precise

« back to all changes in this revision

Viewing changes to doc/autovnv/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2011-11-01 17:43:32 UTC
  • mto: (6.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20111101174332-tl4vk45no0x3emc3
Tags: upstream-2.1.0
ImportĀ upstreamĀ versionĀ 2.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to produce Makefile.in
 
2
 
 
3
#-------------------------------------------------------------------------------
 
4
 
 
5
# This file is part of Code_Saturne, a general-purpose CFD tool.
 
6
#
 
7
# Copyright (C) 1998-2011 EDF S.A.
 
8
#
 
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
 
12
# version.
 
13
#
 
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
 
17
# details.
 
18
#
 
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.
 
22
 
 
23
#-------------------------------------------------------------------------------
 
24
 
 
25
# Main LaTeX document
 
26
 
 
27
TEXMAIN = autovnv.tex
 
28
 
 
29
# Other LaTex document
 
30
 
 
31
TEXOTHERS =
 
32
 
 
33
TEXINPUTFILES = input
 
34
 
 
35
# Distributed files
 
36
 
 
37
EXTRA_DIST = $(TEXMAIN) $(TEXOTHERS) $(TEXINPUTFILES)
 
38
 
 
39
# Subdirectories (order is important)
 
40
 
 
41
SUBDIRS = graphics .
 
42
 
 
43
# Environment variables for LaTeX
 
44
 
 
45
TEXINPUTS = $(top_srcdir)/doc/style/:$(top_builddir)/doc/style/:$(srcdir)//:$(builddir)//:
 
46
BIBINPUTS = $(top_srcdir)/doc/style/:
 
47
BSTINPUTS = $(top_srcdir)/doc/style/:
 
48
 
 
49
# LaTeX commands
 
50
 
 
51
PDFLATEX = export TEXINPUTS="$(TEXINPUTS)"; pdflatex
 
52
BIBTEX = export BIBINPUTS="$(BIBINPUTS)"; bibtex
 
53
 
 
54
# Generated documents (pdf and index files)
 
55
 
 
56
PDFMAIN = $(TEXMAIN:.tex=.pdf)
 
57
 
 
58
# One redefines here the standard pdf targets of automake
 
59
# so that they handle generation from LaTeX documents.
 
60
 
 
61
pdf-local:
 
62
        @$(PDFLATEX) $(TEXMAIN)
 
63
        @$(PDFLATEX) $(TEXMAIN)
 
64
        @$(PDFLATEX) $(TEXMAIN)
 
65
 
 
66
clean-local:
 
67
        -rm -f *.out *.log *.aux *.toc *.lof *.lot \
 
68
         *.ilg *.idx *.bbl *.blg *.ind *.sym *.nsy 
 
69
 
 
70
install-pdf-local:
 
71
        $(MKDIR_P) "$(DESTDIR)$(pdfdir)"
 
72
        $(INSTALL_DATA) $(PDFMAIN) $(DESTDIR)$(pdfdir)
 
73
 
 
74
distclean-local: clean-local
 
75
        -rm -f $(PDFMAIN)
 
76
 
 
77
# Generate the documentation at dist stage so that the user do not need
 
78
# to have LaTeX (and mandatory tools).
 
79
 
 
80
dist-hook: pdf
 
81
        $(INSTALL_DATA) $(PDFMAIN) $(distdir)
 
82
 
 
83
# Install the documentation if available
 
84
 
 
85
install-data-local:
 
86
        if test -f $(srcdir)/$(PDFMAIN); then \
 
87
          $(MKDIR_P) "$(DESTDIR)$(pdfdir)"; \
 
88
          $(INSTALL_DATA) $(srcdir)/$(PDFMAIN) $(DESTDIR)$(pdfdir); \
 
89
        fi
 
90
 
 
91
uninstall-local:
 
92
        @$(NORMAL_UNINSTALL)
 
93
        files=$(PDFMAIN); \
 
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