# $Id: Makefile,v 1.5 2004/03/30 19:37:42 sra Exp $ RFCGENDIR = ../../rfcgen RFCGEN = ${RFCGENDIR}/rfcgen RFCCHECK = ${RFCGENDIR}/rfccheck CVSHTMLWDIFF = ${RFCGENDIR}/cvshtmlwdiff all: txts check clean: rm -f TAGS draft-*[0-9][0-9].* txts: @for i in *.ms; do case "$$i" in draft-*[0-9][0-9].ms) :;; *) echo "Processing $$i"; perl ${RFCGEN} "$$i";; esac; done changes: @perl ${CVSHTMLWDIFF} *.txt tags: TAGS TAGS: *.ms Makefile etags *.ms Makefile check: Makefile ${RFCCHECK} @for i in *.txt; do echo "Checking $$i"; perl ${RFCCHECK} $$i; done update diff: cvs -q $@ ci: cvs ci -m. draft-*[0-9][0-9].ms draft-*[0-9][0-9].txt # Kludge to generate an entire draft on a single "page" to make it easier to diff: # for i in *-0?.ms; do sed 's=^\.pl .*$=.pl 100000v=; /^\.bp/d' $i | nroff -ms >${i%.ms}.dt; done