#!/bin/bash PROJECT = DigitalDesign_prot #------------------------------------------------------------------------------ protocol: #------------------------------------------------------------------------------ latex $(PROJECT) latex $(PROJECT) dvips -o $(PROJECT).ps $(PROJECT).dvi ps2pdf $(PROJECT).ps $(PROJECT).pdf #------------------------------------------------------------------------------ print: protocol #------------------------------------------------------------------------------ psselect -p1 $(PROJECT).ps | lpr #------------------------------------------------------------------------------ help: #------------------------------------------------------------------------------ @echo -e "\n>>> the following targets are available <<<" @echo -e "\t(default) \t generate .dvi, .ps, and .pdf files" @echo -e "\tprotocol \t generate .dvi, .ps, and .pdf files" @echo -e "\tprint \t\t print the title page (you need to sign it!)" @echo -e "\n\thelp \t\t list this text" @echo -e "\tclean \t\t remove temporary files" #------------------------------------------------------------------------------ clean: #------------------------------------------------------------------------------ rm *.aux *.log *.dvi *.toc *.out