For example: this makefile will do for the moment in de editor Geany:
#===============================================================================
# Generic make file for pdfLaTeX for the Geany editor (requires GNU make)
# 17 jun 2008
# This makefile provides two targets: pdf and clean.
# The default is "pdf"
# To make a pdf file, type "make pdf somefile.tex" or "make
somefile.tex"
# To remove all files generated by make, type "make clean somefile.tex".
#
# For the Geany editor (in Linux):
# To make a pdf file for the open file in the editor:
# Shift+Ctrl+F9 (Make Custom target) and fill in: "make pdf TEXFILE=%f"
# To clean for the open file in the editor:
# Shift+Ctrl+F9 (Make Custom target) and fill in: "make clean TEXFILE=%f"
# You can configure the editor:
# Menu Build/Set arguments:
# PDF creation: make pdf TEXFILE=%f
# After an idea of Rouben Rostmaian 2002
TEXFILE = foo.tex
#.PHONY: pdf clean #don't know where this is for?
pdf: $(TEXFILE:.tex=.pdf)
%.pdf: %.tex
( \
pdflatex $<; \
makeindex $(<:.tex=.idx); \
bibtex $(<:.tex=.aux); \
pdflatex $<; \
while grep -q "Rerun to get cross-references right." $(<:.tex=.log); \
do \
pdflatex $<; \
done \
)
clean:
@rm -f \
$(TEXFILE:.tex=.toc) \
$(TEXFILE:.tex=.ind) \
$(TEXFILE:.tex=.ilg) \
$(TEXFILE:.tex=.brf) \
$(TEXFILE:.tex=.blg) \
$(TEXFILE:.tex=.bbl) \
$(TEXFILE:.tex=.idx) \
$(TEXFILE:.tex=.aux) \
$(TEXFILE:.tex=.log) \
$(TEXFILE:.tex=.out) \
$(TEXFILE:.tex=.dvi) \
$(TEXFILE:.tex=.ps)
#Set you preferred pdf-viewer here:
pdf:
evince $(TEXFILE:.tex=.pdf)
#===============================================================================
Friendly greetings
Wilfried
Wilfried Van Hirtum
URL:
http://users.fulladsl.be/spb10695