1 # Copyright (C) 2001 Cluster File Systems, Inc.
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
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
12 IMAGES = file.eps flow_new.eps get.eps mpi.eps portals.eps put.eps
13 LYXFILES= portals3.lyx
15 MAINTAINERCLEANFILES = $(IMAGES) $(DOCS) $(GENERATED)
17 EXTRA_DIST = $(DOCS) $(IMAGES) $(LYXFILES)
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'
26 # Regenerate when the $(VERSION) or $Name: $ changes.
27 .INTERMEDIATE: $(GENERATED)
28 $(GENERATED) : %.lyx: %.lin Makefile
32 @$(LYX2PDF) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
35 @$(LYX2TXT) $< || printf "\n*** Warning: not creating text docs; install lyx to rectify this\n"
37 @$(LYX2HTML) $< || printf "\n*** Warning: not creating HTML docs; install lyx to rectify this\n"
39 -fig2dev -L eps $< > $@
41 portals3.pdf portals3.txt portals3.html: $(IMAGES) portals3.lyx
44 # cp lustre.pdf /usr/src/www/content/lustre/docs/lustre.pdf
45 # ( cd /usr/src/www ; make lustre ; make synclustre )