Whamcloud - gitweb
74815409dcd6378a7f4f7be50cbce111a0f082a8
[fs/lustre-release.git] / lustre / doc / Makefile.am
1 #
2 # GPL HEADER START
3 #
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License version 2 only,
8 # as published by the Free Software Foundation.
9 #
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # General Public License version 2 for more details (a copy is included
14 # in the LICENSE file that accompanied this code).
15 #
16 # You should have received a copy of the GNU General Public License
17 # version 2 along with this program; If not, see
18 # http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
19 #
20 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21 # CA 95054 USA or visit www.sun.com if you need additional information or
22 # have any questions.
23 #
24 # GPL HEADER END
25 #
26
27 #
28 # Copyright  2008 Sun Microsystems, Inc. All rights reserved
29 # Use is subject to license terms.
30 #
31
32 #
33 # This file is part of Lustre, http://www.lustre.org/
34 # Lustre is a trademark of Sun Microsystems, Inc.
35 #
36
37 LYX2PDF = GS_OPTIONS=-dCompatibilityLevel=1.1 $(srcdir)/tex2pdf -overwrite
38 TEX2PDF = GS_OPTIONS=-dCompatibilityLevel=1.1 $(srcdir)/tex2pdf -overwrite
39 LYX2PS = lyx --export ps
40 LYX2TEX = lyx --export latex
41 LYX2TXT = lyx --export text
42 LYX2HTML = lyx --export html
43 LATEX = latex
44 DVIPS = dvips
45 PS2PDF = ps2pdf
46 TEXEXPAND = texexpand
47 SUFFIXES = .lin .lyx .pdf .ps .sgml .html .txt .tex .fig .eps .dvi
48
49 MANFILES = lustre.7 lfs.1 mount.lustre.8 mkfs.lustre.8 tunefs.lustre.8 lctl.8 \
50         llverdev.8 llbackup.8 llapi_quotactl.3 llobdstat.8 llstat.8 plot-llstat.8 \
51         l_getgroups.8 lst.8 routerstat.8 ll_recover_lost_found_objs.8
52
53 if UTILS
54 man_MANS = $(MANFILES)
55 endif
56
57 LYXFILES= $(filter-out $(patsubst %.lin,%.lyx,$(wildcard *.lin)),\
58         $(wildcard *.lin *.lyx))
59
60 CLEANFILES = *.aux *.tex *.log *.pdf
61
62 EXTRA_DIST = tex2pdf $(MANFILES) $(LYXFILES)
63
64 all:
65
66 # These variables are set by lbuild/check-build.
67 RPMRELEASE ?= RELEASE
68 KERNTYPE ?= chaos
69 KERNRPM ?= kernel-2.4.18lustre13-RELEASE.i386.rpm
70
71 .lyx.pdf:
72         @echo $(LYX2PDF) $< && $(LYX2PDF) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
73
74 .lyx.ps:
75         @echo $(LYX2PS) $< && $(LYX2PS) $< || printf "\n*** Warning: not creating PostScript docs; install lyx to rectify this\n"
76
77 .lyx.tex:
78         @echo $(LYX2TEX) $< && $(LYX2TEX) $< || printf "\n*** Warning: not creating LaTeX docs; install lyx to rectify this\n"
79
80 .lyx.txt:
81         @echo $(LYX2TXT) $< && $(LYX2TXT) $< || printf "\n*** Warning: not creating text docs; install lyx to rectify this\n"
82
83 .lyx.html:
84         @echo $(LYX2HTML) $< && $(LYX2HTML) $< || printf "\n*** Warning: not creating HTML docs; install lyx to rectify this\n"
85
86 .tex.pdf:
87         $(TEX2PDF) $<
88
89 .tex.dvi:
90         $(LATEX) $<
91         $(LATEX) $<
92
93 .dvi.ps:
94         $(DVIPS) $< -o $@
95
96 .ps.pdf:
97         $(PS2PDF) $< $@