packages: packages.pdf

%.pdf: %.ps
	GS_OPTIONS="-sPAPERSIZE=a4" ps2pdf $< $@

%.dvi: %.tex
	latex $<
	latex $<

%.ps: %.dvi
	GS_OPTIONS="-sPAPERSIZE=a4" dvips -o $@ $<
clean:
	-rm -rf *.bbl *.aux *.toc *.log *.lof *.tmp *.aux *.ps *.pdf

backup:

realclean: clean
	-rm -rf *~ \#* 

