Whamcloud - gitweb
- fixed typo in a comment.
[fs/lustre-release.git] / lnet / 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
6 LYX2PDF = lyx --export pdf
7 LYX2TXT = lyx --export text
8 LYX2HTML = lyx --export html
9 SUFFIXES = .lin .lyx .pdf .sgml .html .txt .fig .eps
10
11 if DOC
12   DOCS = portals3.pdf
13 else
14   DOCS =
15 endif
16
17 IMAGES = file.eps flow_new.eps get.eps mpi.eps portals.eps put.eps
18 LYXFILES= portals3.lyx
19
20 MAINTAINERCLEANFILES =  $(IMAGES) $(DOCS) $(GENERATED)
21 GENERATED = 
22 EXTRA_DIST = $(DOCS) $(IMAGES) $(LYXFILES) 
23
24 all: $(DOCS)
25
26 # update date and version in document
27 date := $(shell date +%x)
28 tag := $(shell echo '$$Name:  $$' | sed -e 's/^\$$Na''me: *\$$$$/HEAD/; s/^\$$Na''me: \(.*\) \$$$$/\1/')
29 addversion = sed -e 's|@T''AG@|$(tag)|g; s|@VER''SION@|$(VERSION)|g; s|@DA''TE@|$(date)|g'
30
31 # Regenerate when the $(VERSION) or $Name:  $ changes.
32 .INTERMEDIATE: $(GENERATED)
33 $(GENERATED) : %.lyx: %.lin Makefile
34         $(addversion) $< > $@
35
36 .lyx.pdf:
37         @$(LYX2PDF) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
38
39 .lyx.txt:
40         @$(LYX2TXT) $< || printf "\n*** Warning: not creating text docs; install lyx to rectify this\n"
41 .lyx.html:
42         @$(LYX2HTML) $< || printf "\n*** Warning: not creating HTML docs; install lyx to rectify this\n"
43 .fig.eps:
44         -fig2dev -L eps $< > $@
45
46 portals3.pdf portals3.txt portals3.html: $(IMAGES) portals3.lyx
47
48 syncweb: portals3.pdf
49 #       cp lustre.pdf /usr/src/www/content/lustre/docs/lustre.pdf
50 #       ( cd /usr/src/www ; make lustre ; make synclustre )
51