Whamcloud - gitweb
26a1753a0e6a592714c99d8bf65664e09fd38ebf
[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 (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
29 # Use is subject to license terms.
30 #
31 # Copyright (c) 2011, Whamcloud, Inc.
32 #
33
34 #
35 # This file is part of Lustre, http://www.lustre.org/
36 # Lustre is a trademark of Sun Microsystems, Inc.
37 #
38
39 LYX2PDF = GS_OPTIONS=-dCompatibilityLevel=1.1 $(srcdir)/tex2pdf -overwrite
40 TEX2PDF = GS_OPTIONS=-dCompatibilityLevel=1.1 $(srcdir)/tex2pdf -overwrite
41 LYX2PS = lyx --export ps
42 LYX2TEX = lyx --export latex
43 LYX2TXT = lyx --export text
44 LYX2HTML = lyx --export html
45 LATEX = latex
46 DVIPS = dvips
47 PS2PDF = ps2pdf
48 TEXEXPAND = texexpand
49 SUFFIXES = .lin .lyx .pdf .ps .sgml .html .txt .tex .fig .eps .dvi
50
51 MANFILES = lustre.7 lfs.1 mount.lustre.8 mkfs.lustre.8 tunefs.lustre.8 lctl.8 \
52         llverdev.8 llbackup.8 llapi_quotactl.3 llobdstat.8 llstat.8 \
53         plot-llstat.8 l_getgroups.8 lst.8 routerstat.8 lshowmount.8 \
54         ll_recover_lost_found_objs.8 llog_reader.8 llapi_file_open.3 \
55         llapi_file_create.3 llapi_file_get_stripe.3 liblustreapi.7 \
56         lustre_rsync.8 lfs_migrate.1 lhbadm.8 ldev.8 ldev.conf.5 nids.5
57
58 if UTILS
59 man_MANS = $(MANFILES)
60 endif
61
62 LYXFILES= $(filter-out $(patsubst %.lin,%.lyx,$(wildcard *.lin)),\
63         $(wildcard *.lin *.lyx))
64
65 CLEANFILES = *.aux *.tex *.log *.pdf
66
67 EXTRA_DIST = tex2pdf $(MANFILES) $(LYXFILES)
68
69 all:
70
71 # These variables are set by lbuild/check-build.
72 RPMRELEASE ?= RELEASE
73 KERNTYPE ?= chaos
74 KERNRPM ?= kernel-2.4.18lustre13-RELEASE.i386.rpm
75
76 .lyx.pdf:
77         @echo $(LYX2PDF) $< && $(LYX2PDF) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
78
79 .lyx.ps:
80         @echo $(LYX2PS) $< && $(LYX2PS) $< || printf "\n*** Warning: not creating PostScript docs; install lyx to rectify this\n"
81
82 .lyx.tex:
83         @echo $(LYX2TEX) $< && $(LYX2TEX) $< || printf "\n*** Warning: not creating LaTeX docs; install lyx to rectify this\n"
84
85 .lyx.txt:
86         @echo $(LYX2TXT) $< && $(LYX2TXT) $< || printf "\n*** Warning: not creating text docs; install lyx to rectify this\n"
87
88 .lyx.html:
89         @echo $(LYX2HTML) $< && $(LYX2HTML) $< || printf "\n*** Warning: not creating HTML docs; install lyx to rectify this\n"
90
91 .tex.pdf:
92         $(TEX2PDF) $<
93
94 .tex.dvi:
95         $(LATEX) $<
96         $(LATEX) $<
97
98 .dvi.ps:
99         $(DVIPS) $< -o $@
100
101 .ps.pdf:
102         $(PS2PDF) $< $@