Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / doc / Makefile.am
1 # Copyright (C) 2001, 2002 Cluster File Systems, Inc.
2 #
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
5 LYX2PDF = GS_OPTIONS=-dCompatibilityLevel=1.1 $(srcdir)/tex2pdf -overwrite
6 TEX2PDF = GS_OPTIONS=-dCompatibilityLevel=1.1 $(srcdir)/tex2pdf -overwrite
7 LYX2PS = lyx --export ps
8 LYX2TEX = lyx --export latex
9 LYX2TXT = lyx --export text
10 LYX2HTML = lyx --export html
11 LATEX = latex
12 DVIPS = dvips
13 PS2PDF = ps2pdf
14 TEXEXPAND = texexpand
15 SUFFIXES = .lin .lyx .pdf .ps .sgml .html .txt .tex .fig .eps .dvi
16
17 MANFILES = lustre.7 lfs.1 mount.lustre.8 mkfs.lustre.8 tunefs.lustre.8 lctl.8 \
18         llverdev.8 llbackup.8 llapi_quotactl.3
19
20 if UTILS
21 man_MANS = $(MANFILES)
22 endif
23
24 LYXFILES= $(filter-out $(patsubst %.lin,%.lyx,$(wildcard *.lin)),\
25         $(wildcard *.lin *.lyx))
26
27 CLEANFILES = *.aux *.tex *.log *.pdf
28
29 EXTRA_DIST = tex2pdf $(MANFILES) $(LYXFILES)
30
31 all:
32
33 # These variables are set by lbuild/check-build.
34 RPMRELEASE ?= RELEASE
35 KERNTYPE ?= chaos
36 KERNRPM ?= kernel-2.4.18lustre13-RELEASE.i386.rpm
37
38 .lyx.pdf:
39         @echo $(LYX2PDF) $< && $(LYX2PDF) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
40
41 .lyx.ps:
42         @echo $(LYX2PS) $< && $(LYX2PS) $< || printf "\n*** Warning: not creating PostScript docs; install lyx to rectify this\n"
43
44 .lyx.tex:
45         @echo $(LYX2TEX) $< && $(LYX2TEX) $< || printf "\n*** Warning: not creating LaTeX docs; install lyx to rectify this\n"
46
47 .lyx.txt:
48         @echo $(LYX2TXT) $< && $(LYX2TXT) $< || printf "\n*** Warning: not creating text docs; install lyx to rectify this\n"
49
50 .lyx.html:
51         @echo $(LYX2HTML) $< && $(LYX2HTML) $< || printf "\n*** Warning: not creating HTML docs; install lyx to rectify this\n"
52
53 .tex.pdf:
54         $(TEX2PDF) $<
55
56 .tex.dvi:
57         $(LATEX) $<
58         $(LATEX) $<
59
60 .dvi.ps:
61         $(DVIPS) $< -o $@
62
63 .ps.pdf:
64         $(PS2PDF) $< $@