#### # # This is a generic Makefile for building the HTML and Postscript versions of a # requirements document from a common Troff source. The Makefile is designed # to run in a project requirements directory. In most cases, this generic # Makefile can be used directly without modification. If modifications are # necessary, then this file can be used as the base. # # The rules in this file leave the HTML version of the requirements in the # requirements directory, since HTML is the canonical requirements language. # The top-level requirements file is index.html. The Postscript version of the # requirements is moved over to the ../documentation directory to the file # requirements.ps. # # # The mkdocs-full command runs troff and the troff-to-html converter to produce # Postscript and HTML, respectively. The -full version of mkdocs, as compared # to the normal version, makes tables of contents and other stuff. See the # commands themselves in the bin dir for further information on exactly what # they do. # MKDOCS = /users/gfisher/bin/mkdocs-full default: index.html index.html: *.me images/*.ps images/*.gif @ gindxbib refs.ref @ csh -c "$(MKDOCS) index.me" @ mv index+toc.ps ../documentation/requirements.ps @ mv index+toc.pdf ../documentation/requirements.pdf @ mv toc.ps ../documentation/toc-requirements.ps 205-notes5: *.me images/*.ps images/*.gif @ gindxbib refs.ref @ csh -c "$(MKDOCS) index.me -r21" @ mv index+toc.ps ../documentation/205-notes5.ps @ mv index+toc.pdf ../documentation/205-notes5.pdf @ mv toc.ps ../documentation/205-notes5-toc.ps gen-links: @ emacs -batch index.me \ -l ~gfisher/emacs/lib/gen-html-hyper-links.el \ -f gen-html-hyper-links ps-image-links: @ csh -cq .make-ps-links.csh check-gif-dates: @ csh -cq .check-gif-dates.csh update-gifs: @ csh -cq .update-gifs.csh images/%.ps: images/ultra/%.idr @echo $@ changed grep: @ csh -cq .make-grep-files test: @ csh -cq "cd ../testing/requirements ; .make-test.csh" good: @ csh -cq "cd ../testing/requirements ; .make-good.csh" clean: rm -f *.html*