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
17 IMAGES = file.eps flow_new.eps get.eps mpi.eps portals.eps put.eps
18 LYXFILES= portals3.lyx
20 MAINTAINERCLEANFILES = $(IMAGES) $(DOCS) $(GENERATED)
22 EXTRA_DIST = $(DOCS) $(IMAGES) $(LYXFILES)
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'
31 # Regenerate when the $(VERSION) or $Name: $ changes.
32 .INTERMEDIATE: $(GENERATED)
33 $(GENERATED) : %.lyx: %.lin Makefile
37 @$(LYX2PDF) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
40 @$(LYX2TXT) $< || printf "\n*** Warning: not creating text docs; install lyx to rectify this\n"
42 @$(LYX2HTML) $< || printf "\n*** Warning: not creating HTML docs; install lyx to rectify this\n"
44 -fig2dev -L eps $< > $@
46 portals3.pdf portals3.txt portals3.html: $(IMAGES) portals3.lyx
49 # cp lustre.pdf /usr/src/www/content/lustre/docs/lustre.pdf
50 # ( cd /usr/src/www ; make lustre ; make synclustre )