Index: trunk/doc/pslib/Makefile
===================================================================
--- trunk/doc/pslib/Makefile	(revision 3657)
+++ trunk/doc/pslib/Makefile	(revision 5037)
@@ -1,3 +1,3 @@
-# $Id: Makefile,v 1.14 2005-04-05 00:48:40 jhoblitt Exp $
+# $Id: Makefile,v 1.15 2005-09-13 21:28:03 eugene Exp $
 
 PDFLATEX = env TEXINPUTS=.:LaTeX:$(TEXINPUTS): pdflatex
@@ -6,5 +6,5 @@
 help:
 	@echo "USAGE: make (target)"
-	@echo "  targets:  sdrs add all"
+	@echo "  targets:  sdrs add all sdrs-tag add-tag"
 
 sdrs: psLibSDRS.pdf 
@@ -12,6 +12,26 @@
 all : psLibSDRS.pdf psLibADD.pdf
 
-psLibSDRS.pdf: psLibSDRS_Astrom.tex ChangeLogSDRS.tex configFileTests.tex timeTests.tex
-psLibADD.pdf: psLibADD.tex ChangeLogADD.tex
+SDRS = psLibSDRS.tex \
+       ChangeLogSDRS.tex \
+       configFileTests.tex \
+       timeTests.tex \
+       Metadata.ps \
+       earthrot.ps
+
+ADD =  psLibADD.tex \
+       ChangeLogADD.tex \
+       raymodel.f \
+       rotations.ps \
+       earthrot.ps
+
+psLibSDRS.pdf: $(SDRS)
+
+psLibADD.pdf: $(ADD)
+
+sdrs-tag:
+	cvs tag `grep "version{" psLibSDRS.tex | tr "{}" " " | awk '{printf "SDRS-%02d\n", $$2}'` $(SDRS)
+
+add-tag:
+	cvs tag `grep "version{" psLibADD.tex | tr "{}" " " | awk '{printf "ADD-%02d\n", $$2}'` $(ADD)
 
 %.pdf: %.tex
