Abbozzo di fortune server con le message queues
[gapil.git] / Makefile
index 21ca364552ebcad4e4ce600b5fbd77bd18a97922..3a268c2a55fe7259b800e67ca43ab2c0f0c8bee3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,24 @@
-all: html dvi ps pdf img
+SOURCE_IMG = $(wildcard img/*.dia)
+EPS_IMG = $(SOURCE_IMG:.dia=.eps)
+PDF_IMG = $(SOURCE_IMG:.dia=.pdf)
 
-html:
+all: $(PDF_IMG) htm
+
+$(PDF_IMG): %.pdf: %.eps
+       epstopdf $< --outfile=$@
+$(EPS_IMG): %.eps : %.dia
+       dia -e $@ $< 
+
+htm: *.tex
        latex2html -local_icons -no_math -no_footnode gapil.tex
 
-dvi: 
+gapil.dvi:  *.tex
        latex gapil.tex
 
-pdf: 
+gapil.pdf:  *.tex
        pdflatex gapil.tex
 
-ps: 
+gapil.ps: gapil.dvi 
        dvips -o gapil.ps gapil.dvi
 
 install: