Monday, January 18, 2010

Makefile in order to converting tex to pdf file



















.SUFFIXES : .tex .dvi
TEX = latex

FNAME = mydoc
OBJ1 = $(FNAME).dvi
OBJ2 = $(FNAME).ps
SRC = $(FNAME).tex

TARGET = $(FNAME)

all : $(TARGET)
$(TARGET) : $(OBJ1)
dvips $(OBJ1) -o
ps2pdf $(OBJ2)

new : touch $(SRC) ; $(MAKE)

# dissertation.tex : coverletter.tex conclusion.tex <---- dependence
# to combine a few tex files

No comments: