Whamcloud - gitweb
land b1_5 onto 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 if UTILS
18 man_MANS = lustre.7 lfs.1 mount.lustre.8 mkfs.lustre.8 tunefs.lustre.8 lctl.8 
19 endif
20
21 LYXFILES= $(filter-out $(patsubst %.lin,%.lyx,$(wildcard *.lin)),\
22         $(wildcard *.lin *.lyx))
23
24 CLEANFILES = *.aux *.tex *.log *.pdf
25
26 EXTRA_DIST = tex2pdf lustre.7 mount.lustre.8 mkfs.lustre.8 tunefs.lustre.8 \
27         $(LYXFILES) lfs.1 lctl.8        
28
29 all:
30
31 # These variables are set by lbuild/check-build.
32 RPMRELEASE ?= RELEASE
33 KERNTYPE ?= chaos
34 KERNRPM ?= kernel-2.4.18lustre13-RELEASE.i386.rpm
35
36 .lyx.pdf:
37         @echo $(LYX2PDF) $< && $(LYX2PDF) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
38
39 .lyx.ps:
40         @echo $(LYX2PS) $< && $(LYX2PS) $< || printf "\n*** Warning: not creating PostScript docs; install lyx to rectify this\n"
41
42 .lyx.tex:
43         @echo $(LYX2TEX) $< && $(LYX2TEX) $< || printf "\n*** Warning: not creating LaTeX docs; install lyx to rectify this\n"
44
45 .lyx.txt:
46         @echo $(LYX2TXT) $< && $(LYX2TXT) $< || printf "\n*** Warning: not creating text docs; install lyx to rectify this\n"
47
48 .lyx.html:
49         @echo $(LYX2HTML) $< && $(LYX2HTML) $< || printf "\n*** Warning: not creating HTML docs; install lyx to rectify this\n"
50
51 .tex.pdf:
52         $(TEX2PDF) $<
53
54 .tex.dvi:
55         $(LATEX) $<
56         $(LATEX) $<
57
58 .dvi.ps:
59         $(DVIPS) $< -o $@
60
61 .ps.pdf:
62         $(PS2PDF) $< $@