Whamcloud - gitweb
73e8e969e160f7ecf2b889f83b2c60e58542552a
[fs/lustre-release.git] / lustre / doc / Makefile.am
1 # Copyright (C) 2001  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 = lyx --export pdf
6 LYX2TXT = lyx --export text
7 LYX2HTML = lyx --export html
8 SUFFIXES = .lyx .pdf .sgml .html .txt .fig .eps
9
10 DOCS = lustre.pdf lustre-HOWTO.txt
11 IMAGES =  cache1.eps cache2.eps intermezzocache.eps intermezzofilesys.eps meta.eps metadata1.eps networklayer.eps bigpicture.eps intermezzo.eps mds.eps portals.eps client.eps layering.eps metadata.eps sb.eps cow.eps lockacq.eps obdfs.eps snapsetup.eps dirbodyapi.eps loraid.eps ost.eps updates.eps hotmigrate.eps lustreclusters.eps osthw.eps portals-lib.eps lockqueues.eps lockexample1.eps lockexample2.eps lockexample3.eps lockexample4.eps lockseverity.eps
12 LYXFILES= master.lyx evolution.lyx  llocks.lyx mgmt.lyx uncertain.lyx\
13         fs.lyx         lustre-HOWTO.lyx      namespace.lyx\
14         glossary.lyx   lustre-debugging.lyx  network.lyx\
15         intro.lyx      obdspec.lyx
16
17 MAINTAINERCLEANFILES =  $(IMAGES) $(DOCS)
18
19 EXTRA_DIST = $(DOCS) $(IMAGES) $(LYXFILES)
20
21 all: $(DOCS)
22
23 # update date and version in document
24 .lyx.pdf:
25         @$(LYX2PDF) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
26
27 .lyx.txt:
28         @$(LYX2TXT) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
29
30 .lyx.html:
31         @$(LYX2HTML) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
32
33 .fig.eps:
34         -fig2dev -L eps $< > $@
35
36 lustre.lyx: master.lyx $(IMAGES)
37         (ver=`awk -F/ -v key=$<  '$$2 == key {print $$3}' CVS/Entries`;\
38         echo "version for $< is $$ver";\
39         sed "s/version .*/version $$ver/" < $< > lustre.lyx;\
40         )
41
42 syncweb: lustre.pdf
43         cp lustre.pdf /usr/src/www/content/lustre/docs/lustre.pdf
44         ( cd /usr/src/www ; make lustre ; make synclustre )
45
46 dist-hook:
47         rm -rf $(distdir)/figs/CVS
48
49 include $(top_srcdir)/Rules