#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#
# make docs	    Build all the ".dvi" and PostScript (".ps") files
#		    for the document set.
#
# make clean	    Removes all ".dvi", ".aux", ".toc", and ".log" files
#		    in all the document directories.
#
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

DVIPS_CMD = dvips -o

what:
		echo "make what?"

DIRS = 		overview \
		rcclguide \
		install \
		hardware \
		rciguide \
		rcclrefman \
		rcirefman \
		traject \
		multirccl \
		uvaxKernMods \
		rcipaper \
		updateNotes

.PHONY:		clean docs

docs:
		@for d in $(DIRS) ; do \
		  (cd $$d ; echo $$d -- ; \
		   $(MAKE) $(MFLAGS) DVIPS_CMD="$(DVIPS_CMD)" ) ; \
		 done ;

makeClean(*.dvi *.aux *.log *.toc)
clean::
		@for d in $(DIRS) ; do \
		  (cd $$d ; echo $$d -- ; $(MAKE) $(MFLAGS) clean) ; \
		 done ;
