PDFLATEX  = /usr/bin/pdflatex
RM			  = /bin/rm

INFILE = documentation
INPUT  = $(INFILE).tex
OUTPUT = $(INFILE).pdf
TEMP   = $(wildcard *.aux *.log *.out *.svn *.toc *~)

all:
ifeq ($(wildcard *.toc),)
	$(PDFLATEX) $(INPUT)
endif
	$(PDFLATEX) $(INPUT)

clean:
ifneq ($(TEMP),)
		$(RM) $(TEMP)
endif

clean_all: clean
	$(RM) $(OUTPUT)
