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