echo $1'.pdf : '$1$'.tex\n\tlatex '$1'.tex; latex '$1'.tex; dvipdfm '$1'.dvi' > Makefile if [ "$2" = "!" ] then make $1.pdf fi