Added a rule to create 'lustre.lyx' which is a copy of master.lyx,
modified to include the cvs version.
Normally, "make lustre.pdf" should produce a pdf with the proper version on
the cover page, but on my system the whole Date tag is not showing up. Not sure why.
all: $(DOCS)
+# update date and version in document
.lyx.pdf:
@$(LYX2PDF) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
.fig.eps:
-fig2dev -L eps $< > $@
+lustre.lyx: master.lyx $(IMAGES)
+ (ver=`awk -F/ -v key=$< '$$2 == key {print $$3}' CVS/Entries`;\
+ echo "version for $< is $$ver";\
+ sed "s/version .*/version $$ver/" < $< > lustre.lyx;\
+ )
+
master.pdf: master.lyx $(IMAGES)
syncweb: master.pdf