diff paper/Makefile @ 11:bf3c780d3039

changed to outline format
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 14 Jun 2012 20:06:04 +0900
parents 95657b9df30b
children 66931f63db4d
line wrap: on
line diff
--- a/paper/Makefile	Thu Jun 14 19:45:16 2012 +0900
+++ b/paper/Makefile	Thu Jun 14 20:06:04 2012 +0900
@@ -1,26 +1,129 @@
-TARGET=aplas2012
+DEPENDENCY = rectype.ind 
 
-LATEX=platex
-BIBTEX=pbibtex
-DVIPDF=dvipdfmx
-XBB=extractbb
+DEPENDOHP = ohp.tex 
+
+PAPER = rectype.ind
 
 
-.SUFFIXES: .tex .div .pdf
+PRINTER = ab
+OHP = ohp
+MAIN = main
+COVER = trcover
+LATEX = platex
+SLITEX = jslitex
+BIBTEX = jbibtex
+AWK = awk
+SED = sed
+DVI2PS = dvi2ps 
+R = 
+PRINTER = 
+
+.SUFFIXES: .c .d .tokio .x .xfig .fig .tex .dvi .print .lw .next .ps .gs .xdvi
 
+.d.tex:
+	tgrind -F -ldb $< >$@ 
+.c.tex:
+	tgrind -F -lC $< >$@ 
+.tokio.tex:
+	tgrind -F -ltokio $< >$@ 
+.fig.tex:
+	f2tpic $< >$@
+.xfig.tex:
+	f2tpic $< >$@
+.fig.ps:
+	f2ps1 $< >$@
+.x.tex:
+	x2tpic $< 
+	-rm -f $*.pic
 .tex.dvi:
-	$(LATEX) $<
-	$(BIBTEX) $(TARGET)
+	jlatex $<
+.dvi.print:
+	$(DVI2PS) $(R) $< | lpr -P$(PRINTER)
+#	lpr $(PRINTER) -d $<
+.dvi.lw:
+	$(DVI2PS) $(R) $< | lpr -P$(PRINTER)
+.dvi.next:
+	dviNeXT $<
+.dvi.xdvi:
+	(exec xdvi $< & )
+.dvi.ps:
+	-$(DVI2PS) $(R) $< > $*.ps
+.ps.gs:
+	gs $*.ps
+
+all: 	
+	-rm -f $(MAIN).dvi
+	make $(MAIN).dvi
 
-.dvi.pdf:
-	$(DVIPDF) $(DVIPDF_OPT) $<
+print: $(MAIN).print
+lw: $(MAIN).lw
+next: $(MAIN).next
+gs: $(MAIN).gs
+$(MAIN).gs : $(MAIN).ps
+$(MAIN).ps : $(MAIN).dvi
+$(OHP).gs : $(OHP).ps
+$(OHP).ps : $(OHP).dvi
+xdvi: $(MAIN).xdvi
+dvips: $(MAIN).dvi
+	dvips $(MAIN).dvi -o $(MAIN).ps
+
+$(MAIN).dvi:  1.tex 
+	$(LATEX) $(MAIN)
+
+jsss.dvi:  jsss.tex 1.tex 
+	$(LATEX) jsss.tex
+
+wc:
+	$(SED) -e '/\\special{/d' $(PAPER) | delatex | wc
+uu:
+	tar cBf - $(MAIN).[tab]* [0-9]*.tex $(DEPENDENCY)   \
+	title.tex abstract.tex ohp.tex \
+	Makefile | gzip | uuencode $(PAPER).tar.gz > uu
+
+
+bbl: $(MAIN).bbl
 
-all: $(TARGET).pdf
-	open $(TARGET).pdf
+$(MAIN).bbl:  ref.bib 1.tex # $(MAIN).aux
+	-$(BIBTEX) $(MAIN)
+
+$(MAIN).aux: $(MAIN).tex 1.tex
+	$(LATEX) $(MAIN)
+
+1.tex: $(PAPER) $(DEPENDENCY)
+	-o2tex $(PAPER)
+
+# OHP with slitex
+$(OHP): $(OHP).dvi
+$(OHP).dvi : $(OHP).tex $(DEPENDOHP)
+	$(SLITEX) $(OHP)
 
-dvi: $(TARGET).div
+ohpprint: $(OHP).dvi
+	lpr  -c $(OHP).dvi
+ohplw: $(OHP).dvi
+	$(DVI2PS) $(R) -o landscape $(OHP).dvi | lpr  -P$(PRINTER)
+ohpnext: $(OHP).dvi
+	$(DVI2PS) -h -i /usr/lib/tex/ps/tex-j.next -o landscape $(OHP).dvi |\
+	lpr  -Pcb
+ohpgs:  $(OHP).gs
 
-pdf: $(TARGET).pdf
+cover: $(COVER).dvi
+$(COVER): $(COVER).dvi
+$(COVER).dvi : $(PAPER)
+coverprint: $(COVER).print
+coverlw: $(COVER).lw
+covernext: $(COVER).next
+covergs:  $(COVER).gs
 
 clean:
-	rm *.{log,aux,dvi,pdf,bbl,blg}
\ No newline at end of file
+	-rm -f $(MAIN).ps *.dvi *.log *.blg \
+		*~ \#* ?.tex *.toc *.lof *.lot xfig/*.tex
+
+tgrindfig.tex:
+	ln -s "$$HOME"/paper/tgrindfig.tex .
+# for MSDOS
+tgrindfi.tex:
+	ln -s "$$HOME"/paper/tgrindfig.tex tgrindfi.tex
+ref.bib:
+	ln -s "$$HOME"/paper/ref.bib .
+
+