X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=Makefile;h=3a268c2a55fe7259b800e67ca43ab2c0f0c8bee3;hp=e23ceede40af969a78caa223de23914fdfe89b70;hb=8709795cc47d95b76fb055211d8b856c06d9c4e0;hpb=f0cf1e6f39cc8e46cadf4a6cfe1420bd81f088c0 diff --git a/Makefile b/Makefile index e23ceed..3a268c2 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,30 @@ -all: html dvi ps pdf +SOURCE_IMG = $(wildcard img/*.dia) +EPS_IMG = $(SOURCE_IMG:.dia=.eps) +PDF_IMG = $(SOURCE_IMG:.dia=.pdf) -html: - latex2html -local_icons main.tex +all: $(PDF_IMG) htm -dvi: - latex main.tex +$(PDF_IMG): %.pdf: %.eps + epstopdf $< --outfile=$@ +$(EPS_IMG): %.eps : %.dia + dia -e $@ $< -pdf: - pdflatex main.tex +htm: *.tex + latex2html -local_icons -no_math -no_footnode gapil.tex -ps: - dvips -o gapil.ps main.dvi +gapil.dvi: *.tex + latex gapil.tex + +gapil.pdf: *.tex + pdflatex gapil.tex + +gapil.ps: gapil.dvi + dvips -o gapil.ps gapil.dvi install: - scp gapil piccardi@firenze.linux.it:public_html + scp -r gapil* piccardi@firenze.linux.it:public_html clean: - rm -f *.dvi *.log *.ps *.html *.aux \ No newline at end of file + rm -f *.dvi *.log *.ps *.html *.aux *.toc *.rel *.ilg *.rip *.ind \ + *.pdf *.out *.idx *~ +