# Makefile for lecture, Visualization, Spring'03. ############################################################ OS =cyg OS =unix ifeq ($(OS),unix) echoTTHno=\\\\newcommand{\\\\tth}[2]{\#2} > tthSwitch.tex echoTTH=\\\\newcommand{\\\\tth}[2]{\#1} > tthSwitch.tex else echoTTHno=\\newcommand{\\tth}[2]{\#2} > tthSwitch.tex echoTTH=\\newcommand{\\tth}[2]{\#1} > tthSwitch.tex endif # tex macro directory ifeq ($(OS),cyg) TEXMAC = /cygdrive/c/"Program Files"/MiKTeX/tex/latex/myTex TTHMAC =/home/yap/mac/tth # deprecated for cyg: TEXMAC =/home/yap/mac/x else TEXMAC =/home/yap/mac TTHMAC =/home/yap/mac/tth endif # netscape font ifeq ($(pf),cyg) netsFont = -u else netsFont = endif ############################################################ # Targets ############################################################ l l.dvi: l.tex echo $(echoTTHno) latex l all: tth l ps pdf tth: l.tex echo $(echoTTH) # tth ${netsFont} -p${TEXMAC} -p${TTHMAC} l.tex tth ${netsFont} -p${TEXMAC} l.tex mv l.html index.html chmod a+r index.html ps l.ps: l.dvi dvips l -o chmod a+r l.ps pdf: l.ps distill l.ps chmod a+r l.pdf all: tth ps pdf ############################################################ # Housekeeping ############################################################ save: -@ci -m"make save" -l \ Notes Make* l.tex cp: -@cp Notes Make* l.tex RCS tar: -@tar -cvf T.tar * tar1: -@tar -cvf TARFILE \ Notes Make* l.tex index.html l.bbl l.ps l.html \ simple\*.html simple\*cc simple\Make* ############################################################ # END ############################################################