+syncweb: lustre.pdf
+ cp lustre.pdf /usr/src/www/content/lustre/docs/lustre.pdf
+ ( cd /usr/src/www ; make lustre ; make synclustre )
+.PHONY: syncweb chbar
+
+# Build a changebar document from the files in doc.old and this directory.
+chbar: lustre-chbar.pdf
+
+lustre-chbar.tex: chbar.sh postbar doc.old/lustre-full.tex lustre-full.tex
+ $(SHELL) $(srcdir)/chbar.sh doc.old/lustre-full.tex lustre-full.tex | $(srcdir)/postbar > $@
+
+lustre-full.tex: lustre.tex
+ $(TEXEXPAND) -texinputs=. -texinputs=$(srcdir) -output=$@ $<
+
+doc.old/lustre.tex: doc.old/lustre-HOWTO.lyx
+doc.old/lustre-full.tex: doc.old/lustre.tex
+ cd doc.old && $(TEXEXPAND) -texinputs=. -output=lustre-full.tex lustre.tex
+
+# Check out the old directory if it doesn't exist.
+doc.old/lustre.lin doc.old/lustre-HOWTO.lin:
+ @if test "X$(OLD)" = X; then \
+ echo "You must populate doc.old or specify a CVS tag like OLD=v0_5_1"; \
+ exit 1; \
+ fi
+ rm -rf doc.old
+ mkdir doc.old
+ cvs checkout -r $(OLD) -d doc.old lustre/doc