--- a/makefile
+++ b/makefile
@@ -8,9 +8,24 @@
 
 UPLOADFILES=$(wildcard *.html *.css *.png)
 
+ifeq ($(CURRENT_RELEASE),)
+$(error Set CURRENT_RELEASE before running make)
+else
+RELEASE_TAG=sbcl_$(subst .,_,$(CURRENT_RELEASE))
+endif
+
+.PHONY: all generate-pages clean clean-generated clean-junk commit upload
+
 all: generate-pages
 
-generate-pages:
+NEWS::
+	cvs co -p -r $(RELEASE_TAG) sbcl/NEWS > NEWS
+
+current-release:: NEWS
+	( echo $(CURRENT_RELEASE) > current-release ; \
+	  cvs rlog -N -r$(RELEASE_TAG) sbcl/version.lisp-expr | ./cvs-rlog-to-date >> current-release )
+
+generate-pages: current-release
 	sbcl --eval "(require :asdf)" --eval "(require :sbcl-page)" --eval "(sbcl-page:generate-pages)" --eval "(quit)"
 
 clean: clean-generated clean-junk